bunny.net × Astro

Astro.session

Sessions

A session is one object in a Bunny Storage zone, so every edge node reads the same value.

Nothing is in the session yet.

How it is set up

The adapter registers the driver on its own. Give the script a zone it may write to, and keep the asset zone read-only:

bunny scripts env set BUNNY_SESSION_ZONE my-site-sessions
bunny scripts env set BUNNY_SESSION_KEY <write password> --secret