>
> Technically, the server-side session does not get erased when you close 
> the browser (though you can explicitly clean up old session files using a 
> script like this one: 
> http://code.google.com/p/web2py/source/browse/scripts/sessions2trash.py). 
> However, the session cookie on the browser does get deleted by the browser 
> when you close the browser.
>

I should note there is one exception to the session cookie being deleted 
upon closing the browser. If you are using Auth and set 
auth.settings.remember_me_form = True, upon login with the "Remember me" 
option checked, it will set a 30 day expiration on the session cookie (so, 
from the browser's perspective, it is technically no longer a "session" 
cookie). In that case, the session will survive across multiple browser 
sessions.

Anthony

Reply via email to