They're backed with Memcache and Datastore so you won't lose session data
when the instance shuts down. I can't find the default, but it looks like
the session code respects HttpSession's maxInactiveInterval() method:

http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)

This won't clear the datastore data, so you still want to likely run a cron
job to garbage collect the datastore periodically:

https://groups.google.com/forum/#!topic/google-appengine-java/Tw2a8cYz05o

If you want to inspect these values or work with them programmatically, the
entities are of the "_ah_SESSION" kind and the expires property is the
"_expires" property. The low-level datastore API is your friend.

Site note: bummer, we don't have the code for AppEngineSession (implements
HttpSession interface) in the public SDK source:

http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fjava%2Fsrc%2Fmain


--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com



On Thu, Jan 26, 2012 at 5:46 AM, Christopher Johnson <[email protected]>wrote:

> All -
>
> Does anyone know how long Java sessions are around for when making use
> of the servlet session interface that GAE implements ?
>
> Thanks in advance.
> ..Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to