Cleaning Up Rails Sessions, Revisited
In an earlier post, we detailed a method for removing stale Rails session files. In more recent version of Rails, there is a Rake task built in for this administration task.
rake tmp:sessions:clear # Clears all files in tmp/sessions
August 16th, 2007 at 5:37 pm
Thanks for the tip. I wonder why these aren’t cleaned up automatically. I’m just going to setup a cron job to run this command to prevent things from getting out of hand.