For those interested, Luke Redpath's SessionTimeout
plugin as documented in The Rails Way doesn't appear to be available from its previous home, but it can be found on GitHub at http://github.com/lukeredpath/session-timeout/tree/master. I installed and ran it on a Rails 2.1.1 application, and it still works as advertised.
Update: Upon closer inspection, Rails once again managed to break its contract and redefined the method minutes
, as in 20.minutes
to return 1200 seconds
rather than simply 1200
. Even though both results are of class Fixnum
, the newer version manages to break session_times_out_in 20.minutes
. You are advised to use just the number 1200
.