What is the default session expiration time in Sinatra?

If I had not set a session expiration time in Sinatra, what would be the default expiration time?

+6
source share
1 answer

A Sinatra session comes from Rack :: Session; therefore, it does not expire from the box by default. To override, you can do something like the following.

set :sessions, :expire_after => 2592000

+7
source

Source: https://habr.com/ru/post/946662/


All Articles