> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Session Storage

A counter saved in session storage, which every page your app shows can read and write.


## What it shows

- **`LynxSessionStorage`** — a key-value store that lasts while the [host app](/guide/glossary.md#host-app) runs and is shared between its pages. See [Share state between pages](/guide/session-storage.md).
- **`watch<number>('counter')`** — returns a signal that updates when the key changes.
- **`setItem()`** — stores a value. Values can be numbers or objects, not only strings.
- **`getItem()`** — a one-time read that returns a promise. The example shows "(not available)" if it fails.

## Related

- [Multi-Page](/examples/multi-page.md)
- [`LynxSessionStorage` API](/api/angular-lynx/session-storage.md)
