By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,450 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

[Twisted] Sessions validity

P: n/a
Sorry for posting this here but I got no reaction when asking in
twisted-web mailing list:

Twisted stores the Session objects using cookies. I'd like to know how
long these Sessions last (it seems to be 30 minutes?) and - more
importantly - I'd like my application to be able to set different
Session timeouts for different users. I need some of the users (just
some!) to be able not to click on anything on the site for several hours
and still be logged in afterwards, when they click.

Is there a way to do this cleanly or do I have to change the Twisted
sources? (I admit I am not very proficient with the cookies)

--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail: fu**@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sat, Feb 07, 2004 at 06:10:49PM +0100, Frantisek Fuka wrote:
Sorry for posting this here but I got no reaction when asking in
twisted-web mailing list:

Twisted stores the Session objects using cookies. I'd like to know how
long these Sessions last (it seems to be 30 minutes?) and - more
importantly - I'd like my application to be able to set different
Session timeouts for different users. I need some of the users (just
some!) to be able not to click on anything on the site for several hours
and still be logged in afterwards, when they click.

Is there a way to do this cleanly or do I have to change the Twisted
sources? (I admit I am not very proficient with the cookies)


The default is 60 seconds before login occurs, 30 minutes afterwards. It
is changed by calling "setLifetime" on the GuardSession.

Jp
Jul 18 '05 #2

P: n/a
Jp Calderone wrote:
The default is 60 seconds before login occurs, 30 minutes afterwards. It
is changed by calling "setLifetime" on the GuardSession.


Thank you very much!

--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail: fu**@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.