How do I set up a session value that expires 1.hours from now in Rails?
Cookies have an option like:
cookies[:thing] = {:value => {:normal => "session stuff"}, :expires => 2.hours.from_now}
Are there any options for sessions too?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
please try this
you can also try
All these are working in my application. Please do not forget to consider time zone.