Forum: Ruby on Rails sessions, cached pages, and the tmp folder

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Charlie B. (Guest)
on 2006-05-03 21:07
(Received via mailing list)
I've been running edge rails for a while but I can't seem to get my
sessions and to be written to the rails_root/tmp folder.  My sessions
keep getting wrote to the servers /tmp directory.  What do I need to do
to get rails to use the new tmp folder?  Thanks in advance

Charlie B.
Charlie B. (Guest)
on 2006-05-08 22:40
(Received via mailing list)
It took me a while but I figured this one out on my own.

rake tmp:cache:clear           # Clears all files and directories in

rake tmp:clear                 # Clear session, cache, and socket files
from tmp/
rake tmp:create                # Creates tmp directories for sessions,
cache, and sockets
rake tmp:sessions:clear        # Clears all files in tmp/sessions
rake tmp:sockets:clear         # Clears all ruby_sess.* files in

Hope this helps somebody.

Charlie B.
This topic is locked and can not be replied to.