session management
Benjamin Niemann
b.niemann at betternet.de
Tue Aug 10 04:23:03 EDT 2004
A.M. Kuchling wrote:
> On Sun, 08 Aug 2004 14:02:14 +1000,
> Ajay Brar <abra9823 at mail.usyd.edu.au> wrote:
>
>>question is what happens when the client does not log out? what if he
>>simply leaves the website? i can put a timer on the cookie, but how do i
>>cleanup the temp files.
>
>
> You'd need to run a cron job that periodically cleans up sessions that
> haven't been touched in the last 8 or 24 or whatever hours.
He says, he has not direct access to the webserver - this will most
likely ruleout cronjobs.
Instead check with every Nth request for expired session files, just
like PHP does: http://www.php.net/manual/en/ref.session.php
c ya
More information about the Python-list
mailing list