Rails/Devise - Determining when user session will expire -
when using timeoutable module devise, how can 1 determine how long before current user's session expires? goal include value in responses client side script can make use of it. gather devise internally uses warden authentication, haven't found explains how pull session expiration time out of depths of warden.
here how it:
class user < activerecord::base devise :authenticatable, :timeoutable, :validatable, :timeout_in => 20.minutes end
Comments
Post a Comment