On 4/26/06, Anthony Chee <[EMAIL PROTECTED]> wrote:
> I would like to check whether the session expired in cgiapp_prerun stage,
> but got some problem
>
> The condition is that the application will not go to mode "page6"
> (showSessionExpire) after I logged in the system and idle for more than 1
> min, it just run into "page1", ie, conition $self->session->is_new() met,
> and new session is generated. I checked that CGI-Application-Plugin-Session
> manual page and found "This effectively creates a singleton session object
> for the duration of the request. CGI::Session will look for a cookie or
> param containing the session ID, and create a new session if none is
> found.". Does it mean that expired session will not be loaded, and create a
> new session instead?

Most likely, the cookie is being expired on the client, and is not
being sent to the server.  Which means CGI::Session can not know that
a session was expired, because it is not given a session ID.  You
should try and set the cookie expiry time to be later than the session
expiry time.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to