# `AshUi.Phoenix.EnsureSessionId`
[🔗](https://github.com/hyperbob-labs/ash_ui/blob/main/lib/ash_ui/phoenix/ensure_session_id.ex#L1)

Stores a stable AshUi session id in the Plug session, so HTTP
remounts (refresh, direct entry, test drivers that remount per
navigation) continue the same UI session. Add to the host's browser
pipeline:

    plug AshUi.Phoenix.EnsureSessionId

---

*Consult [api-reference.md](api-reference.md) for complete listing*
