Forum: Ruby on Rails Setting Session Length When User Logs In

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
john (Guest)
on 2005-11-20 05:56
(Received via mailing list)
From a previous question of mine I found out I can set:

session :session_expires => Time.now + 10.years

In the application controller.  But I want to be able to set the
session_expires when the person logs in based on if they click 'keep
me logged in' or not.  Does anyone know how I could do this.  I can't
seem to find any good information on this but it should be very
simple... in theory.

John K.

--
http://www.soen.info - where software engineering knowledge gets indexed
http://cusec.soen.info - software engineering conference
This topic is locked and can not be replied to.