On Sat, Jan 15, 2011 at 5:41 PM, Dexter <[email protected]> wrote: > Hey Branko > > I should thank you specifically for answering so many of my > queries ... infact u have answered 2 all my posts ... > so "Thanks a lot Branko" :) > > There is one thing which I cant get .. could be my weak python ... m > new 2 it also ... > https://github.com/webpy/webpy/blob/master/web/session.py#L26 > if I set the timeout to some value and the browser which created that > cookie never visit me again still that cookie will be deleted after > the said amount of time automatically or do I have to specifically > write code for it. I need to know bcoz I dont want the datastore to > get filled with useless sessions
If the session expires, you'll have to create a new one. Depending on what exactly you do with the session, you need to re-auth the user or somehow restore the previous state. Don't rely on sessions to be there forever, though. The usual way is: session <-- user_id <--- persistent state where session is variable, user_id is constant, and persistent state points to user_id rather than session_id. By persistent state I mean stuff like configuration options or whatever users might change and want restored after authentication. -- Branko Vukelic [email protected] http://www.brankovukelic.com/ -- 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.
