Closed GoogleCodeExporter closed 9 years ago
The title is incorrect, loading from memcached 2X where delete is called in
between. The second load fails to load the session, thus the session is lost.
Can we turn this "removeFromMemcached" off?
Original comment by jayd.low...@gmail.com
on 10 Dec 2012 at 11:33
The invocation of MemcachedBackupSessionManager.remove should be caused by a
session expiration.
As long as your code does not call this, I wonder what's the reason for it.
Did you check that the server time is the same on both machines? That you only
experience this from one machine to the other but not the other way around
might be a hint on a server time mismatch, too.
Original comment by martin.grotzke
on 11 Dec 2012 at 9:21
Hello Martin,
Good point. There was a few lag between 2 machines. I was actually looking at
the code and looking why that is called, and I noticed that there was a
background task that sweeps through the sessions and cleans up.
Great stuff. I actually like this solution over the clustering between tomcats.
Thanks,
Melvin
Original comment by jayd.low...@gmail.com
on 11 Dec 2012 at 11:16
Thanx! :-) So it's working now?
Original comment by martin.grotzke
on 11 Dec 2012 at 11:19
Yes! It works very well. I would put more testing around this because I want to
put this live on our production systems.
If I find more issues I'll let you know. :)
Cheers!
Melvin
Original comment by jayd.low...@gmail.com
on 12 Dec 2012 at 9:42
Ok, great!
Original comment by martin.grotzke
on 13 Dec 2012 at 8:17
Hi,
I am having clustering environment with 2 memcache instances and 2 servers and
added the jars in tomcat lib directory which are available in the site
https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
While disabling the cookies am getting the data from the session.
problem:
========
But with enabling cookies am not getting data from the session with multiple
tabs on the same browser hitting at the same time.
Expected:
========
It should work with enabling/Disabling cookies.
Configuration in context.xml of tomcat:
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:localhost:11211"
sticky="false"
operationTimeout="60000"
sessionBackupTimeout="300000"
sessionBackupAsync="false"
lockingMode="none"
transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory
"
/>
Previous without clustering able to get the data in multiple tabs.
When am searching with different search criterias in multiple tabs am able to
get the data in one tab and am getting session as null for other tab in same
browser.
Thanks.
Original comment by run2chak...@gmail.com
on 24 May 2013 at 1:12
Original issue reported on code.google.com by
jayd.low...@gmail.com
on 10 Dec 2012 at 11:30