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.
pointing to
your login page, with the appropriate timeout as the refresh
interval.
I would also advise planning ahead to remove this “feature” when your
client begs you to, since the users will all hate it.
So true. We were asked this question for some freelance work a few
years back, in fact, they insisted on having that “feature” for
security reasons. It took them exactly one week to beg us to take it
away again. 5 minutes pass so quickly: you have a phone call, you get
a coffee and bump into a colleague,
On Fri, Dec 30, 2011 at 11:46 AM, Peter De Berdt [email protected] wrote:
I would also advise planning ahead to remove this “feature” when your
client begs you to, since the users will all hate it.
So true. We were asked this question for some freelance work a few years
back, in fact, they insisted on having that “feature” for security reasons.
It took them exactly one week to beg us to take it away again. 5 minutes
pass so quickly: you have a phone call, you get a coffee and bump into a
colleague,
But the “how to” remains a valid question, regardless of whether it’s
5 minutes, 30 minutes or 24 hours