Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI::Session Question

by Anonymous Monk
on Sep 30, 2010 at 21:04 UTC ( #862853=note: print w/replies, xml ) Need Help??


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

    Thanks!

    I wasn't aware of this functionality:

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

    This is exactly what I was looking for.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://862853]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-05-17 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?