in reply to Re^6: CGI::Session session expiration problems
in thread CGI::Session session expiration problems
From looking at CGI::Session::load, this looks valid and your sessions shouldn't expire:
# checking for expiration ticker if ( $self->{_DATA}->{_SESSION_ETIME} ) { if ( ($self->{_DATA}->{_SESSION_ATIME} + $self->{_DATA}->{_SES +SION_ETIME}) <= time() ) { $self->_set_status( STATUS_EXPIRED | # <-- so client ca +n detect expired sessions STATUS_DELETED ); # <-- session shou +ld be removed from database $self->flush(); # <-- flush() will + do the actual removal! return $self; } }
This is largely the only mention of STATUS_EXPIRED. So, you will need to post a self-contained example that fails, and then likely report this as a bug. Or maybe your check for whether a session is expired is wrong, or you have two machines which create/check sessions and their system clocks are at least 15 minutes apart.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: CGI::Session session expiration problems
by speckled (Novice) on Jan 16, 2009 at 10:49 UTC |