Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sessions enabled - do we have to clean them up ourselves?

When we turn sessions on in google app engine like:

// appengine-web.xml
<sessions-enabled>true</sessions-enabled>

does app engine automatically clean up expired sessions, or do we have to do it ourselves? After turning them on, I see in the datastore that some entries are being generated like _ah_session, I'm wondering if those are them?

Thanks

like image 971
user246114 Avatar asked Apr 26 '10 03:04

user246114


1 Answers

Yes those are the session entries. Google's app engine documentation includes the following:

The implementation creates datastore entities of the kind _ah_SESSION, and memcache entries using keys with a prefix of _ahs.

(http://code.google.com/appengine/docs/java/config/appconfig.html)

As for cleaning up session data. I found the following 2 discussions:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a http://www.mail-archive.com/[email protected]/msg01372.html

HTH, Steve

like image 63
Steve Robillard Avatar answered Nov 20 '22 18:11

Steve Robillard