Displaying 3 results from an estimated 3 matches for "clear_sessions".
Did you mean:
clear_session
2006 Jul 10
1
Redirects and keeping flash
My code that acts if a session has timed out looks like this:
reset_session
session[:expires_at] = nil
# TODO - This flash is never shown, because we redirect maybe?
flash[:error] = ''Your session has timed out, please login to
continue.''
# An attempt to make flash stick around, not working
flash.keep
redirect_to :controller => ''security'',
2005 Dec 17
9
How to clear sessions with cron?
Anyone got a quick code snippet I can add to my crontab? Since Rails
doesn''t do any housekeeping, my /tmp directory just keeps getting fatter
and fatter. I found this useless snippet in the Agile book:
find /tmp/ -name ''ruby_sess*'' -ctime +12h -delete
Fedora Linux complains about the ''h'' in 12h, then if you remove the ''h''
he
2006 Mar 22
1
Please: Desperately Seeking Session expiration (DRbStore)
Hello,
this is killing me: i can''t find a way to let idle sessions expire after a
certain period of time. If they don''t expire, they will pile up until there''s no
more memory available.
Please, can anybody give me a hint?
Basically, all I need is a hash or list with all the sessions in DRbStore.
Greetings
Michael Kastner