Is there any way to set the session expiration from the controller? I can do it from the environment file but not in the code... I want to implement a "remember me" checkbox at the login... Thanks, Chad --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 28 Dec 2006, at 03:49, Chad Arimura wrote:> > Is there any way to set the session expiration from the controller? I > can do it from the environment file but not in the code... > > I want to implement a "remember me" checkbox at the login...Generate a new rails app (name it "testapp" or something), then install the acts_as_authenticated plugin and follow the instructions at http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated This plugin has everything you need and even more. The remember me option uses a cookie btw. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks for pointing me to that. On 12/28/06, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > > > On 28 Dec 2006, at 03:49, Chad Arimura wrote: > > > Is there any way to set the session expiration from the controller? I > can do it from the environment file but not in the code... > > I want to implement a "remember me" checkbox at the login... > Generate a new rails app (name it "testapp" or something), then install the > acts_as_authenticated plugin and follow the instructions at > http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated > > This plugin has everything you need and even more. > > The remember me option uses a cookie btw. > > > > Best regards > > > > > Peter De Berdt > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---