Helllo there, Can any one help me on this "Session Expiry" I just want to make the session expire when the system goes idle how do i do it yours , Narayanan.cj. --~--~---------~--~----~------------~-------~--~----~ 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 Thu, Mar 12, 2009 at 2:26 AM, NARAYANAN CJ <cjnarayanan.com-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Helllo there, > > Can any one help me on this "Session Expiry" > > I just want to make the session expire when the system goes idle > > how do i do itCGI::Session.expire_after 2.hours -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
many thanks Donald , even i was looking for this whether the session get cleared by default or only when the page is idle. Senthil Raja On Fri, Mar 13, 2009 at 12:52 AM, Greg Donald <gdonald-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Thu, Mar 12, 2009 at 2:26 AM, NARAYANAN CJ <cjnarayanan.com-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Helllo there, > > > > Can any one help me on this "Session Expiry" > > > > I just want to make the session expire when the system goes idle > > > > how do i do it > > > CGI::Session.expire_after 2.hours > > > -- > Greg Donald > http://destiney.com/ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> CGI::Session.expire_after 2.hoursthat''s not entirely true. the above mentioned code only works with the dynamic_session_exp plugin. without plugins for CGI::Session there are only few methods like new or delete (http://www.ruby-doc.org/core/ classes/CGI/Session.html). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---