session: rename cookie to 'cista', add __Host- prefix on HTTPS

This commit is contained in:
2026-04-27 03:56:07 +00:00
parent 1927c24053
commit 575df1214b
4 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ def _session_cookie_header(username: str) -> dict[str, str]:
"exp": int(time()) + session.max_age,
"username": username,
}
return {"Cookie": f"s={token}"}
return {"Cookie": f"cista={token}"}
@pytest.fixture