memcached-session-manager icon indicating copy to clipboard operation
memcached-session-manager copied to clipboard

memcached sessions do not redirect

Open davedennis opened this issue 8 years ago • 2 comments

I set up memcache on two amazon ec2 instances. Along with a ElastiCache runing memcache. If I log into either of my instances separately I have no problem loging in then redirecting. But if I go through my AWS loadblancer it seems to just redirect me back to the login.xhtml page. But if I tail the logs in both instances I can see soap request and a 200 response code.

What I have. It's a spring/tomcat 8 app in my tomcat lib I have three jars. -memcached-session-manager-2.1.1.jar -memcached-session-manager-tc8-2.1.1.jar -spymemcached-2.11.1.jar in my context.xml I have

  <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
        memcachedNodes="n1:memcache-one-node.drkx12.cfg.usw2.cache.amazonaws.com:11211"
             memcachedProtocol="binary"
             sticky="true"
             sessionBackupAsync="true"
             requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
             transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory" 
          />

I'm at a loss as to why it won't redirect on the load balancer. Like I said when I tail the logs I see the request working well and it looks like it is using the memcahce. Since i'm using the built in java serialization I figured I don't need to add anything to WEB-INF/lib/. Am I missing something obvious? Thanks

davedennis avatar Oct 17 '17 20:10 davedennis

@magro Seen anything like this before?

davedennis avatar Oct 18 '17 21:10 davedennis

@davedennis Sorry for the late response here. Is this still relevant or can we close this issue?

magro avatar Mar 14 '18 23:03 magro