[Twisted-Python] Does the default session expiry work?

Mark Wright markscottwright at gmail.com
Tue Mar 2 15:07:04 EST 2010

On Tue, Mar 2, 2010 at 12:55 PM, Maarten ter Huurne
<maarten at treewalker.org> wrote:
> On Tuesday 02 March 2010, markscottwright at gmail.com wrote:
>> I'm using twisted 8.2 and (after reading glyph's latest "Twisted in 60
>> seconds" entry), I've realized that my sessions never expire. I never
>> added any session expiration code, but I thought that the default code
>> expires after 15 minutes.
>> In the below example, I modified twisted\web\server to make
>> Session.sessionTimeout be 30 seconds (I also put a print statement in
>> Session's ctor, as the log shows), then did two GETs separated by more
>> than 30 seconds. As the log shows, it looks like the exact same session
>> uid is being returned. I would expect it to be deleted by
>> Session.expire, since time - lastModifiedTime > 30. Am I missing
>> something?
> Maybe you are encountering bug 3458?
> http://twistedmatrix.com/trac/ticket/3458
> If so, upgrading Twisted would help.
> Bye,
>                Maarten

Thanks, that looks like a likely culprit.  Please forgive me if this
is more of a Trac than Twisted question, but how do I go from a trac
ticket to a twisted version number?  It's not clear to me from reading
that ticket if 9.0 is good enough for me, or if I need to pull the svn

Mark Wright
markscottwright at gmail.com

More information about the Twisted-Python mailing list