/ Zope / Apsis / Pound Mailing List / Archive / 2008 / 2008-10 / Question about TTL in session wih cookie

[ << ] [ >> ]

[ Re: [Pound Mailing List] load is not balanced ... ] [ ubsubscribe / Michael Lasmanis ... ]

Question about TTL in session wih cookie
Nagy Gergely <nagy.gergely(at)gnanet.net>
2008-10-01 14:36:32 [ FULL ]
I use now pound in a production environment, and i have a question to
the TTL value in session type cookie.

The current config is:
    Session
        Type COOKIE
        ID "PHPSESSID"
        TTL 86400
    End

But we have set the 24hour value, because our cookies in our
applications have the same ttl.

Can anyone explain what the TTL in this configuration does?
Now i have a constantly growing number of sessions, and an hour ago we
had for some seconds a "service unavaiable" and the session count began
from 0 again.

Any ideas/thoghts?

[...]
Attachments:  
smime.p7s application/x-pkcs7-signature 3395 Bytes

Re: [Pound Mailing List] Question about TTL in session wih cookie
Robert Segall <roseg(at)apsis.ch>
2008-10-01 17:51:55 [ FULL ]
On Wed, 2008-10-01 at 14:36 +0200, Nagy Gergely wrote:[...]

The TTL defines for how long a session will be kept in the absence of
traffic. 24h sounds excessive - 10 minutes is usually more than enough.

A "service unavailable" occurs when Pound cannot connect to a back-end.
In this case the back-end is declared to be "dead" and all the sessions
to it are discarded. If your server was not down you may have had a
time-out, so increase that accordingly.[...]

MailBoxer