From 67ae4fe03861791b9180bfd4a59ddb0871502348 Mon Sep 17 00:00:00 2001 From: fish Date: Fri, 24 Jul 2026 22:19:21 +0800 Subject: [PATCH] =?UTF-8?q?session=20cookie=20=E6=94=B9=E4=B8=BA=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E4=BC=9A=E8=AF=9D=E7=BA=A7=EF=BC=8C=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=90=8E=E9=9C=80=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ft-app/app/routers/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft-app/app/routers/auth.py b/ft-app/app/routers/auth.py index 5d8e3ee..bc52f36 100644 --- a/ft-app/app/routers/auth.py +++ b/ft-app/app/routers/auth.py @@ -41,7 +41,7 @@ def login( ) resp = RedirectResponse("/contracts/", status_code=303) - resp.set_cookie(SESSION_COOKIE, str(user.id), httponly=True, max_age=86400 * 7) + resp.set_cookie(SESSION_COOKIE, str(user.id), httponly=True) return resp