Dears, is there any good way to do a session expiration in Heroku? or
any rules to follow?
I'm a rookie in rails, and Heroku of course, Lately, I have just
created some simple apps in Heroku. I notice that there are some house-
keeping work to do with user sessions. Even thought I use activerecord
as my session_store, I still worry about possible sessions left over
by unpredictable end-users. Reading over articles on "rails seesion
expiration", I get 2 ways to do that.
First, setup a cron job to clear delete those expired sessions data in
the database. If this is the better way, then how can I set up a cron
job in Heroku ?
Secondly, install a session_expiration plugin offered by Dave Naffis
http://trac.intridea.com/trac/public/wiki/SessionExpiration.
Here is how it works: Install like "script/plugin install
http://svn.intridea.com/svn/public/session_expiration", and then
simply declear "expire_session_in 5.minutes" in my
ApplicationController.
But the problem is, how can I install this plugin in Heroku?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---