The variables are not stored on a session when the project is Deployed to Google App Engine with Java. I use the common system that implements ServletRequestAware (works on local and on the current non-google server):
Map<String, Object> session = ActionContext.getContext().getSession();
session.put(SESSION_LOGIN, true);
session.put(SESSION_LOGIN_DATE, new Date());
session.put(SESSION_LOGIN_ID, idCustomer);
I know those variables are not stored because i'm printing them on the logs.
I'm using new app.yaml configuration on a Flexible environment.
I've read somewhere that GAE doesn't accept "usual" sessions, instead it uses it's own, but I don't find specific documentation about that.
I'm a bit confused while searching for help, with outdated / not about the same problem / unclear (at least to me) questions and help, like those:
- Should I use sessions in Google App Engine?
- https://cloud.google.com/appengine/docs/standard/java/config/appref?hl=fr#Java_appengine_web_xml_Enabling_sessions
- Google app engine sessions now supported?
- How to deal with Sessions in Google App Engine?
- https://cloud.google.com/appengine/docs/standard/java/tools/localunittesting/javadoc/com/google/appengine/api/files/dev/Session
Anybody can point me to the right way to do it? It has to be done with a specific Google library?