Skip to content

Commit

Permalink
trying this
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed May 5, 2023
1 parent 876e542 commit 8b636fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

Expand Down

0 comments on commit 8b636fc

Please sign in to comment.