From fabc3a7557f0c19fee363df7f27e76546d49395b Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 24 Feb 2025 11:01:45 +0000 Subject: [PATCH] Set strict session for a week --- lib/music_library_web/endpoint.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/music_library_web/endpoint.ex b/lib/music_library_web/endpoint.ex index f836ab76..9bc57ac1 100644 --- a/lib/music_library_web/endpoint.ex +++ b/lib/music_library_web/endpoint.ex @@ -8,7 +8,9 @@ defmodule MusicLibraryWeb.Endpoint do store: :cookie, key: "_music_library_key", signing_salt: "esP44C0z", - same_site: "Lax" + same_site: "Strict", + # one week + max_age: 60 * 60 * 24 * 7 ] socket "/live", Phoenix.LiveView.Socket,