Hi, I''m setting a 1 hour session expiry in my application.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_ex pires => 1.hour.from_now) This works just fine except that I''d like to know that an expired session was detected so I can put a friendly flash message on the login screen the user is directed to. Any pointers? Thanks, Nev
On 2005.04.20., at 7:57, Neville Burnell wrote:> This works just fine except that I''d like to know that an expired > session was detected so I can put a friendly flash message on the > login > screen the user is directed to. >In addition it would be nice to catch session end event to write back some info to database, finish pending tasks, etc. But how? Gábor _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Not trying to hijack the thread, but I tried putting a line like that in application.rb and got: uninitialized constant ActionWebService::Dispatcher::ActionController::CgiRequest Pointers welcome. I''d like to limit the session in a nice central place like application.rb. --Scott On 4/19/05, Neville Burnell <Neville.Burnell-uEDVyssJ3mUpAS55Wn97og@public.gmane.org> wrote:> Hi, > > I''m setting a 1 hour session expiry in my application.rb: > > ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_ex > pires => 1.hour.from_now) > > This works just fine except that I''d like to know that an expired > session was detected so I can put a friendly flash message on the login > screen the user is directed to. > > Any pointers? > > Thanks, > > Nev > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- --Scott