diff --git a/pages/sessions/cookies/index.md b/pages/sessions/cookies/index.md index 8c883b9..61d9f5e 100644 --- a/pages/sessions/cookies/index.md +++ b/pages/sessions/cookies/index.md @@ -108,7 +108,7 @@ function handleRequest(request: HTTPRequest, response: HTTPResponse): void { // session validation const cookies = parseCookieHeader(request.headers.get("Cookie") ?? ""); const token = cookies.get("session"); - if (sessionId === null) { + if (token === null) { response.setStatusCode(401); return; }