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

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.
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-05-03 19: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 Bowman
www.recentrambles.com
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-05-08 20: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
tmp/cache

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
tmp/sessions

Hope this helps somebody.

Charlie Bowman
www.recentrambles.com
This topic is locked and can not be replied to.