[Twisted] Sessions validity

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frantisek Fuka

    [Twisted] Sessions validity

    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: fuka@fuxoft.cz
    My Homepage: http://www.fuxoft.cz
    My ICQ: 2745855
  • Jp Calderone

    #2
    Re: [Twisted] Sessions validity

    On Sat, Feb 07, 2004 at 06:10:49PM +0100, Frantisek Fuka wrote:[color=blue]
    > 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)
    >[/color]

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

    Jp


    Comment

    • Frantisek Fuka

      #3
      Re: [Twisted] Sessions validity

      Jp Calderone wrote:
      [color=blue]
      > The default is 60 seconds before login occurs, 30 minutes afterwards. It
      > is changed by calling "setLifetim e" on the GuardSession.[/color]

      Thank you very much!

      --
      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

      Comment

      Working...