Reputation: 8517
I can't figure out how to get the session timeout in Rails (either default or configured); here it is written how to set it, but how to get it doesn't.
I tried:
Some::Application.config.session_store
: returns a classapp.controller.session.timeout
, ...expires_at
: doesn't workUpvotes: 3
Views: 3381
Reputation: 31
I know this question is old, but I'll leave this here for future weary travelers:
To get options defined from
Rails.application.config.session_store ....
You can do
Rails.application.config.session_options
Upvotes: 3