What is the recommended way to do Session Management on Google Application
Engine?
In the webapp world, the usual implementation with a session store
(Redis/Memcache/RDBMS etc) that is shared by all server-instances.
So, when the Java code calls
request.getSession().setAttribute("UserName", username);
that value will be accessible for multiple requests
by this browser.
A websearch shows some advice:
- Implement it yourself
- Various open-source libraries, non-standard and mostly unmaintained
I would expect a PaaS like GAE to have Session Management out-of-the-box.
This StackOverflow answer
<https://stackoverflow.com/questions/28689941/how-to-deal-with-sessions-in-google-app-engine>
says "AppEngine
uses Datastore to store the session informations and memcache for faster
access" and this official documentation
<https://cloud.google.com/appengine/docs/standard/java/config/appref>
mentions that
"Session data is always written synchronously to memcache."
But on the other hand this tutorial
<https://cloud.google.com/community/tutorials/express-memcached-session-appengine>
suggests
that session management must be added to GAE.
How should we do Session Management?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/CAD%3DB7cOaH%2Bu_mEKK8psfMiCaAEDGYmyDp67nJEs2txEfXifFXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.