(body: string, status: number)
| 362 | } |
| 363 | |
| 364 | function clearSessionResponse(body: string, status: number): Response { |
| 365 | return new Response(body, { |
| 366 | status, |
| 367 | headers: { |
| 368 | "Content-Type": "text/html; charset=utf-8", |
| 369 | "Set-Cookie": `${SESSION_COOKIE}=; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=0`, |
| 370 | "Cache-Control": "no-store", |
| 371 | }, |
| 372 | }); |
| 373 | } |
| 374 | |
| 375 | function passwordPage( |
| 376 | session: EncodedSession, |