mdesantis
mdesantis

Reputation: 8517

Rails: get session timeout

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:

Upvotes: 3

Views: 3381

Answers (1)

mttdffy
mttdffy

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

Related Questions