Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
What's a good way to clean up the session files generated by CGI::Session? Some of these files are deleted when the users perform logout. If they don't, then these files just remain in the session folder and grow overtime.
Of course you want to make sure that only those that have expired are cleaned up. I'm thinking of using cron and reading the files' dates or something. But are there better solutions?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Suggestions on cleaning up session files
by almut (Canon) on Mar 19, 2009 at 17:32 UTC | |
by Anonymous Monk on Mar 20, 2009 at 15:04 UTC | |
by almut (Canon) on Mar 20, 2009 at 15:19 UTC | |
Re: Suggestions on cleaning up session files
by sundialsvc4 (Abbot) on Mar 19, 2009 at 17:33 UTC | |
Re: Suggestions on cleaning up session files
by Bloodnok (Vicar) on Mar 19, 2009 at 17:34 UTC | |
by mr_mischief (Monsignor) on Mar 19, 2009 at 18:12 UTC | |
Re: Suggestions on cleaning up session files
by captsalty (Initiate) on Mar 19, 2009 at 21:30 UTC | |
Re: Suggestions on cleaning up session files
by Utilitarian (Vicar) on Mar 23, 2009 at 13:31 UTC |
Back to
Seekers of Perl Wisdom