Skip to content

Commit

Permalink
fix: set session cookie max-age to 5 days
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyJayJay committed Sep 16, 2024
1 parent 9b98c54 commit 4d05fb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/co/gaiwan/compass/http.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
:keywordize true}
:cookies true
:session {:flash true
:cookie-attrs {:http-only true}
:cookie-attrs {:http-only true
;; 5 days
:max-age (* 60 60 24 5)}
:store (session-cookie/cookie-store {:key "zsrpNuvjTqFcz6fg"})}
:security {:anti-forgery true
:frame-options :sameorigin
Expand Down

0 comments on commit 4d05fb9

Please sign in to comment.