Forum: Ruby on Rails tmp/sessions growing huge

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9c94250a76c3b78ce49eb9541981b06b?d=identicon&s=25 E-minenz Dot com (e-minenz)
on 2007-02-24 10:02
Is there something I should do about it? Should I empty that folder
everyonce in a while? Do I risk crashing my FS? Or I should just leave
it be?

Shark
91308e9bc88cb069fd1bcf88e910d042?d=identicon&s=25 Nick Snels (nicksnels)
on 2007-02-24 11:26
The easiest way to resolve this problem is to write a cron job that
removes every one or two houres files that are older than a certain
time. That way you are only keeping the most recent session files.
Another option is to store the sessions in the db and delete them
occasionally.

Nick
--
http://www.railshostinginfo.com
Compare and review Rails hosts
This topic is locked and can not be replied to.