Re: [Cgi-session-user] To remove expired sessions from disk
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2006-05-30 16:32:18
|
On Tue, May 30, 2006 at 09:28:01AM -0700, David Levner wrote: > > It appears that I have to read the session files instead of using > CGI::Session to open them. If I use CGI::Session, then it will update > _SESSION_ATIME (the last access time) as if the user had done > something. My code would be much cleaner if there was a way to examine > a session without updating the last access time. I recall this being discussed before. I think it would be reasonable for find() not to update _SESSION_ATIME, so patching CGI::Session to behave that way could be a clean solution. Either that, or pay more attention in your application to _SESSION_MTIME instead, which would indicate that something actually changed in the session. Mark |