[Twisted] Sessions validity

Discussion in 'Python' started by Frantisek Fuka, Feb 7, 2004.

  1. 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:
    My Homepage: http://www.fuxoft.cz
    My ICQ: 2745855
    Frantisek Fuka, Feb 7, 2004
    #1
    1. Advertising

  2. Frantisek Fuka

    Jp Calderone Guest

    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
    Jp Calderone, Feb 7, 2004
    #2
    1. Advertising

  3. 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:
    My Homepage: http://www.fuxoft.cz
    My ICQ: 2745855
    Frantisek Fuka, Feb 7, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Cox [Microsoft MVP]

    Re: Relationship between IIS Sessions and ASP.NET Sessions?

    Ken Cox [Microsoft MVP], Aug 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,355
    Luther Miller
    Aug 8, 2003
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    444
    Jean-Paul Calderone
    Jun 17, 2008
  3. Glyph
    Replies:
    0
    Views:
    172
    Glyph
    Dec 27, 2012
  4. Glyph
    Replies:
    0
    Views:
    148
    Glyph
    Apr 3, 2013
  5. Glyph
    Replies:
    0
    Views:
    49
    Glyph
    May 12, 2014
Loading...

Share This Page