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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -