[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: CGILua / Xavante: sessions and timeouts
- From: Javier Guerra <javier@...>
- Date: Mon, 5 Sep 2005 21:20:27 -0500
On Monday 05 September 2005 4:14 pm, William Trenker wrote:
> What is the best way to time-out a CGILua session? This is quite a
> common feature of sessions and many session API's include an optional
> setting for automatically clearing a session after the specified time.
>
> More specifically: what is the best way to do this where CGILua is
> being run as a handler (cgiluahandler.lua) under Xavante?
i've been thinking about this (because of the coroutine/sessions functionality
in the CVS version of Xavante), but don't have a definitive answer.
it's easy to set an expiration time on a cookie; but it's not so easy to clean
old sessions when the user doesn't return. i plan to (eventually) include an
expiration time on the session record, and every now and then traverse the
table and just purge the old records.
--
Javier
Attachment:
pgpFo2i7iqho3.pgp
Description: PGP signature