SvelteKit Kitchen Sink

Session Handling Page

This page demonstrates cookie-based session handling in SvelteKit. Each visit increments a counter stored in a secure, HTTP-only cookie.

Your Session

Session ID: synmd

Total Visits: 1

First Visit: 11/9/2026, 9:11:51 PM

Last Visit: 11/9/2026, 9:11:51 PM

Current Request: 11/9/2026, 9:11:51 PM

{
  "id": "synmd",
  "visits": 1,
  "firstVisit": "2026-11-09T21:11:51.665Z",
  "lastVisit": "2026-11-09T21:11:51.665Z"
}

Refresh the page to see your visit count increment.

How It Works

Back to Home