in reply to Re: Suggestions on cleaning up session files
in thread Suggestions on cleaning up session files

Thanks for your code :) You wrote "Sample code". Does it work as it? Do I have to make changes to it?
  • Comment on Re^2: Suggestions on cleaning up session files

Replies are listed 'Best First'.
Re^3: Suggestions on cleaning up session files
by almut (Canon) on Mar 20, 2009 at 15:19 UTC

    Well, you might need to adjust $tmp_path and $max_age, and then configure things to have it run via cron.  You wouldn't risk much just giving it a try :) — there really isn't much to it, after all... And in case you're paranoid, you can always first comment out the unlink line, and uncomment the debug print to check what would be deleted...