[Catalyst] generic way of "session has expired" message?

Bill Moseley moseley at hank.org
Thu Jan 29 15:16:46 GMT 2009

On Thu, Jan 29, 2009 at 07:05:07AM +0100, Jens Schwarz wrote:
> $c->session_delete_reason() is empty as soon as the session expires,
> because delete_reason is zapped with the session.

I'm using such a modified version of Session now I may be off, but
yes, if you have a session store that expires the session then that
happens.  IIRC, the Session code has two stored items for each session
-- the session data and a separate item to manage the session expires
time.  But, if the session data expires or if the cookie expires then
you don't have anything to indicate that it expired.

In the past I would set a separate persistent cookie on login and
would delete it on explicit logout.  That way if they had that cookie
but were not logged in I could tell them their session expired.

I quit reporting to users that their session expired.  They seem to
figure it out when they are asked for their login again.  And it
doesn't really change the fact that they must log in again.  People
seem to understand that you can get logged out for inactivity.

Bill Moseley
moseley at hank.org
Sent from my iMutt

More information about the Catalyst mailing list