Not quite. The sessions on disk get deleted when the session's
_cleanup method is called, which happens as an application processor
AND the time since last call is greater than the timeout (which
defaults to 24 hours). It also runs the first time session is called
due to some interesting code (not sure why those aren't just class
variables, but oh well), so simply restarting the webpy app and
viewing a page will cleanup the sessions for you.

On Jan 15, 1:40 pm, Branko Vukelić <[email protected]> wrote:
> On Sat, Jan 15, 2011 at 10:31 PM, Dexter <[email protected]> wrote:
> > So there is no automatic cleaning if the session is never requested to
> > be loaded again which is the answer to my original question
> > (if I set the timeout to some value and the browser which created that
> > cookie never visits 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 ?)
>
> No, it's quite the opposite. The sessions are completely cleaned every
> request... I might be wrong, but the source code seems to imply that.
>
> > So I guess I have to schedule a job to clean all sessions per day ...
>
> See above.
>
> --
> 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.

Reply via email to