Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default session expire time in Sinatra?

Tags:

sinatra

rack

If I did not explicitly set the session expire time in Sinatra, then what would be the default expire time?

like image 694
Kurt Liu Avatar asked Jun 06 '13 09:06

Kurt Liu


1 Answers

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

like image 73
bigtunacan Avatar answered Sep 20 '22 03:09

bigtunacan