expire session on browser close

33 views
Skip to first unread message

shovan

unread,
Feb 26, 2012, 2:04:08 AM2/26/12
to gae-sessions
Hi,
In my app i want the logged in user to be logged out once he/she
closes browser like any other normal website.
I am using gaesessions for to know user is logged in or not.
How to terminate session when browser closes. I tried with lifetime 0
but that did not help as user is not able to login.

Thanks.

David Underhill

unread,
Feb 28, 2012, 1:35:00 AM2/28/12
to gae-se...@googlegroups.com
This is possible thanks to a contribution from another user.  It was released as part of 1.07.  You can view the original pull request here (I believe it also explains how to get the behavior you want):

https://github.com/dound/gae-sessions/pull/15

~ David

jbake...@gmail.com

unread,
Jun 18, 2012, 5:10:29 PM6/18/12
to gae-se...@googlegroups.com
I implemented this with the 0 lifetime. I am observing that it works in Firefox but not Chrome. Does anyone have any thoughts on why the difference?

David Underhill

unread,
Jun 23, 2012, 6:11:06 PM6/23/12
to gae-se...@googlegroups.com
Weird, that's definitely unfortunate :(.  If you figure out what's going on here, I'd love to incorporate a patch so that this works properly in Chrome too.

~ David
Reply all
Reply to author
Forward
0 new messages