From 3412597fd939da39a581ee200f5690a4c520b26c Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 26 Sep 2023 23:59:51 +0300 Subject: [PATCH] Change session cookie name --- app/modules/auth/session.server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/modules/auth/session.server.ts b/app/modules/auth/session.server.ts index 1bd1b715a..363760ca1 100644 --- a/app/modules/auth/session.server.ts +++ b/app/modules/auth/session.server.ts @@ -8,8 +8,7 @@ if (process.env.NODE_ENV === "production") { } export const authSessionStorage = createCookieSessionStorage({ cookie: { - // xxx: if domain trick works this needs renaming to force people to log back in - name: "_session", + name: "__session", sameSite: "lax", // need to specify domain so that sub-domains can access it domain: process.env.NODE_ENV === "production" ? "sendou.ink" : undefined,