Different Session timeout for different users

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
participants (1)
-
Frantisek Fuka