[Twisted-web] Re: session, quick one
nico at tekNico.net
Sat Apr 24 00:29:50 MDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
> Unfortunately, it doesn't have your proposed lifetime=7200 argument, and
> the lifetime is totally hardcoded into the session. I recommend reading
> twisted.web.server.Request.getSession and twisted.web.server.Session;
> it's not that much code. If you notice, Session.checkExpired checks
> whether to expire the session every 15 minutes. You might want to create
> your own code which touches the session every 10 minutes or so (by
> calling touch()) and expires it when you like (by calling expire()).
> We'll keep this in mind for the upcoming twisted.web cleanup and
Yeah, parameterized session timeouts would be really helpful.
Nicola Larosa - nico at tekNico.net
"I know, no one's gonna show me everything
We all come and go unknown
Each so deep and superficial
Between the forceps and the stone"
-- Joni Mitchell, Hejira, 1976
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Twisted-web