lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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: pgpNP81LpkHwH.pgp
Description: PGP signature