Ruby on Rails Friday, December 30, 2011

Hi Angel,
Devise will expire session in the time that you put in
'config/initializers/devise.rb' with

config.timeout_in = 5.minutes

but this won't redirect your app automatically to the login page, so,
you would need some javascript function to solve this. You should try
to implement some like an automatic redirection after expire some time
(minutes, hours, etc)

Here there is some that helped me to solve a task similar as yours.


http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/

I hope this helps.

See ya.

Cesar
-------------------------------------------------
In: http://www.linkedin.com/in/cesardiaz

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment