How to enable session support in Google App Engine (Java)?

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!

+5
source share
2 answers

For the first question. In yours appengine-web.xmlis:

<?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>
+11
source

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

+1

All Articles