Use deleteCookie to remove session cookie

This commit is contained in:
Hornwitser 2025-03-08 00:36:10 +01:00
parent 2897542823
commit c71841801b

View file

@ -30,7 +30,7 @@ export async function clearAccountSession(event: H3Event) {
if (await clearAccountSessionInternal(event, sessions)) { if (await clearAccountSessionInternal(event, sessions)) {
await writeSessions(sessions); await writeSessions(sessions);
} }
setCookie(event, "session", "") deleteCookie(event, "session");
} }
export async function setAccountSession(event: H3Event, accountId: number) { export async function setAccountSession(event: H3Event, accountId: number) {