Hi,
I cannot figure out how to let session cookies expire after let's say
two years. Note that I am *not* using CookieStore. I mean the cookie
referencing the Active Record Session.
Here is my config/environnement.rb
++++++++++++++
[...]
Rails::Initializer.run do |config|
[...]
config.action_controller.session = {
:key => "...",
:secret=>"...",
}
end
[...]
ActionController::Base.session_store = :active_record_store
ActionController::Base.session_options[:session_expires]=(Time.now+2.years)
++++++++++++++
Sessions are correctly stored in the database, but the cookie expires
when the browser is quit. I tried everything!
I used to rely on SQLSessionStore, which let my cookies expire as I
wanted, but since SQLSessionStore doesn't seem to work with 2.3...
If someone could help, it would be great!
Thank you
Nauhaie
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---