If I did not explicitly set the session expire time in Sinatra, then what would be the default expire time?
The Sinatra session comes from Rack::Session; so out of the box it defaults to no expire. To override you can do something like follows.
set :sessions, :expire_after => 2592000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With