If I’m not wrong, standard temp-file sessions expire when the active
window closes, does the same go for active_record_store sessions or must
they be emptied through specific instructions?
Thanks.
If I’m not wrong, standard temp-file sessions expire when the active
window closes, does the same go for active_record_store sessions or must
they be emptied through specific instructions?
Thanks.
On Apr 18, 2007, at 12:34 AM, Peter Cho wrote:
If I’m not wrong, standard temp-file sessions expire when the active
window closes, does the same go for active_record_store sessions or
must
they be emptied through specific instructions?
Session expiration equals session cookie expiration.
By default the cookie has no expiration date, which means it expires
when the user closes the browser. You can set a fixed expiration
window with
ActionController::Base.session_options[:session_expires] = something
and dynamic expiration with this plugin
http://agilewebdevelopment.com/plugins/dynamic_session_exp
The very database cleanup has to be done by hand. Just put a cron
task that deletes old records in the sessions table.
– fxn
Alright, thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs