Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix cookie

Sara Vieira4ba56934a910
diff --git a/app/services/session.server.ts b/app/services/session.server.ts
index 3d9e473d35..79e30d84f7 100644
--- a/app/services/session.server.ts
+++ b/app/services/session.server.ts
@@ -3,6 +3,7 @@ import { createCookieSessionStorage } from "@remix-run/node";
// export the whole sessionStorage object
export const sessionStorage = createCookieSessionStorage({
cookie: {
+ maxAge: 60 * 60 * 24 * 30,
name: "_session", // use any name you want here
sameSite: "lax", // this helps with CSRF
path: "/", // remember to add this so the cookie will work in all routes