> In that the general idea of expiration is to discard > information that hasn't been accessed in a while, some feel that updating the > timestamp is best done during both loading and storing.
If you don't always store the session (Apache::Session doesn't store unless you modify data in the session) then you have to update the timestamp on load to be accurate. If you want to be frugal, you might make the store operation update the timestamp, and then install a cleanup handler that will update the timestamp only if the session was not stored. - Perrin