# `MqttX.Server.SessionBackend.DETS`
[🔗](https://github.com/cignosystems/mqttx/blob/v0.13.0/lib/mqttx/server/session_backend/dets.ex#L1)

A `MqttX.Server.SessionBackend` in a local DETS file: sessions survive a
restart of the node. The file is local, so it does not move a session to
another node — for that, implement the behaviour over a store every node
reaches (a database).

Options:

  * `:path` — the file (default `"mqttx_sessions_<listener>.dets"` in the
    current directory)

The file is owned by the process that starts the listener and closed when
it exits.

---

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