diff --git a/account.rb b/account.rb index ffb78af0..9b55d05d 100644 --- a/account.rb +++ b/account.rb @@ -71,13 +71,13 @@ helpers StyledFlash -use Rack::Session::Cookie, - httponly: true, +enable :sessions +set :sessions, same_site: :none, - secure: true, - secret: ENV["RACK_COOKIE_SECRET"] + expire_after: 1.day + +set :sessions, secure: true if settings.environment == :production -enable :sessions set :session_secret, ENV["RACK_COOKIE_SECRET"] set server: "thin", connections: []