Skip to content

Commit 19c46fc

Browse files
セッションIdの削除方法を変更する #20
1 parent a9c6ec6 commit 19c46fc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/routes/logout/+page.server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export const load: PageServerLoad = async () => {
77

88
export const actions: Actions = {
99
default: async ({ cookies }) => {
10-
cookies.set('session_id', '', {
11-
path: '/',
12-
expires: new Date(0),
13-
})
14-
10+
cookies.delete('session_id')
1511
throw redirect(302, '/')
1612
}
1713
}

0 commit comments

Comments
 (0)