i run my rails program in linux , then i shutdown , after i run it agian, server report session are expired,
A:
You can defined the timespan after which a session expires in config/initializers/session_store.rb
ActionController::Base.session = {
:key => '_myapp_session',
:secret => '23fd...11b3d84682ec',
:expire_after => 1.month
}
Thomas R. Koll
2010-05-24 08:52:35
A:
If you want to set the duration of a session:
ActionController::Base.session_options[:expire_after]=2.years
Anyway this guide will be of some help
microspino
2010-05-24 08:55:53