Skip to content

Commit

Permalink
fix: explicitly set rack session to none
Browse files Browse the repository at this point in the history
Also sets secure when in production mode and is https
  • Loading branch information
niquerio committed May 5, 2023
1 parent 46394e2 commit ee54d91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
helpers StyledFlash

enable :sessions
set :sessions,
same_site: :none,
expire_after: 1.day

set :sessions, secure: true if settings.environment == :production

set :session_secret, ENV["RACK_COOKIE_SECRET"]
set server: "thin", connections: []

Expand Down

0 comments on commit ee54d91

Please sign in to comment.