[Twisted-web] Different Session timeout for different users
Frantisek Fuka
twisted-web@twistedmatrix.com
Mon, 02 Feb 2004 17:09:01 +0100
Hello everyone,
I have the following problem: I need for different users of my web
application to have different Session timeouts. From looking at the
Twisted sources, it seems to me that Session timeout is hardcoded at 30
minutes or something like that. But I need for SOME of my users to have
this limit much longer, e.g. visiting the site, then not clicking on
anything for 6 hours (or visiting other sites in the meantime), then
getting back to my site and STILL BE LOGGED IN. But most of the other
users should still have the original (30 mins?) limit.
What is the cleanest way to implement this?
My application doesn't use Factories at all, I simply use the parts of
Twisted as includes in my application - which is written in 100% Python.
Unfortunately, I don't understand cookies very well, so it's not easy
for me to write my own "Session" class from scratch...
Thanks
--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail: fuka@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855