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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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 => + 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.

-- - where software engineering knowledge gets indexed - software engineering conference
This topic is locked and can not be replied to.