Thanks for the clarification, Justin!
I filed an issue and hope it will be changed.
https://github.com/webpy/webpy/issues/99
Bests,
Dragan

Am 21.09.2011 02:30, schrieb Justin Davis:
> Hi Dragan,
> 
> Good question. The timeout parameter determines when to delete the
> session from disk (or database depending on store). So, if I had an
> idle browser open for 25 hours, the webpy session engine would delete
> that data from disk even though your cookie is still valid.
> 
> There isn't (currently) a way to handle the cookie timeout time in
> webpy sessions -- it uses web.setcookie without setting an expiration
> directly, so the cookie defaults to expiring when the user closes
> their browser. It wouldn't be too complicated to add in that behavior
> however.
> 
> Best,
> Justin
> 
> On Sep 20, 5:03 am, Dragan Espenschied <[email protected]> wrote:
>> Isn't it true that I would store a user's log in state in the session? If the
>> session then cannot survive the browser being closed, it would mean for any 
>> user
>> to log in each time they visit the web site, which is quite unusual and 
>> annoying.
>>
>> Does it mean i need to get the session id and store it in a cookie, retrieve 
>> it
>> from there and then putting it back into the session? On every access? Even 
>> PHP
>> has better session management than that :)
>>
>> What use does the session 'timeout' parameter serve then?
>>
>> Maybe I am getting something wrong here?
>>
>> Bests,
>> Dragan
>>
>> Am 17.09.2011 18:38, schrieb FM:
>>
>>> Nothing is wrong. Session cookies are meant to be expired when the browser 
>>> is
>>> closed. It's not web.py specific, it's the general rule. I think what you're
>>> looking for is cookies. By using cookies, you could set expire time to 5 
>>> years.
>>
>>> http://webpy.org/cookbook/cookies
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "web.py" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/webpy/-/6M2G_oLDSHYJ.
>>> 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 
>>> athttp://groups.google.com/group/webpy?hl=en.
>>
>> --http://noobz.cc/http://digitalfolklore.org/http://contemporary-home-computing.org/1tb/
> 

-- 
http://noobz.cc/
http://digitalfolklore.org/
http://contemporary-home-computing.org/1tb/

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to