save "update_time" on session[id] (or elsewhere) whenever session is "used" 
and then check...

if session[id].creation_time and session[id].creation_time > request.now 
-datetime
.timedelta(seconds=60):
     ...do the cleanup




On Wednesday, October 31, 2012 6:05:13 PM UTC+1, Annet wrote:
>
> In a router function I create a Storage object:
>
> session[id]=Storage(id=id)
>
> session[id] stores data and menus session[id].node session[id].sitenav etc.
>
> Is there a way to empty session[id] if session[id] hasn't been used for 
> some time?
>
>
> Kind regards,
>
> Annet
>

-- 



Reply via email to