How to enable GAE session support using Java?
In addition, a related question: I want to store only a small number of states in sessions (basically, only a key) - will GAE store this information in a client cookie, and if so, how safe is this?
Thank!
For the first question. In yours appengine-web.xmlis:
appengine-web.xml
<?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> ... <sessions-enabled>true</sessions-enabled> </appengine-web-app>
Please refer to this link provided in the comments in appengine-web.xml:
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions