Forum: Ruby on Rails Session Expiry

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.
6febf965d2e10d78c8a41b21240c70e1?d=identicon&s=25 NARAYANAN CJ (Guest)
on 2009-03-12 08:26
(Received via mailing list)
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.
Aad37b5f7116c8d1f547d23b37566032?d=identicon&s=25 Greg Donald (destiney)
on 2009-03-12 20:23
(Received via mailing list)
On Thu, Mar 12, 2009 at 2:26 AM, NARAYANAN CJ
<cjnarayanan.com@gmail.com> 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/
4f4bd568475b3af7db5f27aacdeab2ec?d=identicon&s=25 senthil raja (Guest)
on 2009-03-13 05:57
(Received via mailing list)
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
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-03-13 08:01
(Received via mailing list)
> CGI::Session.expire_after 2.hours

that'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).
This topic is locked and can not be replied to.