[Zope] Defining a session idle timeout value using FSSession...
Dieter Maurer
dieter@handshake.de
Wed, 13 Sep 2000 21:53:40 +0200 (CEST)
Aaron Bostick writes:
> Would anyone on the list have a solution to implementing idle timeouts using
> FSSession?
>
> I know you can cron up a simple job to delete the FSSession hierarchy based
> on date and time, but how do you know which sessions are still being used if
> you want to delete stuff say every 10 minutes or so?
Under Unix, your code may look at the "last access time" (or universally
the "modification time").
In Python, you can use the function "os.stat" to obtain this time.
Dieter