Set strict session for a week

This commit is contained in:
Claudio Ortolina
2025-02-24 11:01:45 +00:00
parent 5c98a5a7ef
commit fabc3a7557
+3 -1
View File
@@ -8,7 +8,9 @@ defmodule MusicLibraryWeb.Endpoint do
store: :cookie, store: :cookie,
key: "_music_library_key", key: "_music_library_key",
signing_salt: "esP44C0z", signing_salt: "esP44C0z",
same_site: "Lax" same_site: "Strict",
# one week
max_age: 60 * 60 * 24 * 7
] ]
socket "/live", Phoenix.LiveView.Socket, socket "/live", Phoenix.LiveView.Socket,