I am trying to use the auto signout feature,
here is my model:
class Student < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :timeoutable
def timeout
3.seconds
end
end
here is the routes.rb:
devise_for :students do get '/students/sign_out' => 'students/sessions#destroy' end
I sign-in, then I wait 5 seconds, at this time, student session should be expired, but, if vavigating to any other protected page is not redirecting back to login form, meaning that the session is still active.
Is there something I am missing ?? what shall I check ?
Thanks, hopewise