Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've used both webapp2 + GAE for python and a number of Java/JEE webapp frameworks. The python WSGI framework could keep users logged in while I redeploy the app while none of the Java web framework that I tried could do it. If I redeploy, users of the Java webapp will get logged out but if I use GAE for python then a redeployment doesn't log users out. Is this a general "feature" of python vs Java webapps and is this true in general or just a coincidence that the ones I tried had these features? Is there a name for this feature, ability to keep users logged in between redeployments and also keeping caches (e.g. memcache) without getting the cache erased for updating the app=

share|improve this question
1  
then java keeps it in ram while python probably used the DB to keep session keys –  ratchet freak Jan 27 at 13:31
1  
Python frameworks generally use cryptographically signed cookies with a timestamp and the username. These don't require any serverside resource other than a server-side secret and the user account. Presumably the Java frameworks require a RAM-backed session store instead, and restarting invalidates the sessions. –  Martijn Pieters Jan 27 at 13:36

1 Answer 1

up vote 1 down vote accepted

You're not looking hard enough. Pretty much all java servers that I know of are able to persist sessions. Its just a case of reading the docs and setting up the config.

See this answer for tomcat.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.