in reply to CGI::Session Question

automatically cleans things up and unlinks the session file in the tmp directory

expiration is only checked when you load a session. If you never load a session, the data will hang around in your store forever (file will hang around forever). To remove expired sessions from disk use

CGI::Session->find( sub {} );
See also CGI::Session::ExpireSessions

Replies are listed 'Best First'.
Re^2: CGI::Session Question
by Perobl (Beadle) on Oct 01, 2010 at 16:55 UTC


    I wasn't aware of this functionality:

    CGI::Session -> find( sub{} );

    This is exactly what I was looking for.