Use deleteCookie to remove session cookie
This commit is contained in:
parent
2897542823
commit
c71841801b
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export async function clearAccountSession(event: H3Event) {
|
|||
if (await clearAccountSessionInternal(event, sessions)) {
|
||||
await writeSessions(sessions);
|
||||
}
|
||||
setCookie(event, "session", "")
|
||||
deleteCookie(event, "session");
|
||||
}
|
||||
|
||||
export async function setAccountSession(event: H3Event, accountId: number) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue