Rails: get session timeout
I can't figure out how to get the session timeout in Rails (default or configured); here it is written how to install it, but how to get it is not.
I tried:
-
Some::Application.config.session_store
: returns class -
app.controller.session.timeout
,...expires_at
: doesn't work - docs: no clues
+3
mdesantis
source
to share
2 answers
Maybe this link will help you http://madkingsmusings.blogspot.com/2011/05/session-timeouts-on-rails.html
+1
yasir hashmi
source
to share
I know this question is old, but I'll leave it here for future weary travelers:
To get the parameters determined from
Rails.application.config.session_store ....
You can do
Rails.application.config.session_options
+1
mttdffy
source
to share