Reputation: 2169
is there any way to clean up webapp2 (the framework used in Google App Engine - Python) session (extras package)?
Upvotes: 1
Views: 635
Reputation: 434
By default Sessions are only stored but not deleted after they are expired. There seems to be only a predefined servlet in Java.
For Python I found the Project gae-sessions which offers also a simlar functionality like in Java. You have to define a cron job that calls some cleanup routine.
Cronjob:
cron:
- description: daily session cleanup
url: /cleanup_sessions
schedule: every 24 hours
Cleanup routine:
from gaesessions import delete_expired_sessions
while not delete_expired_sessions():
pass
Upvotes: 1