Sessions and tokens

How long a network lives, how each device gets its own token, and how to come back.

The one rule

A session has no time limit while any device is connected: use it for an hour or a month. When every device is offline the server keeps the session for 7 days so you can come back, then removes it. This is the same for everyone.

Every device has its own token

The first time a device joins, the server gives it a session token (it starts with bhd_). The token belongs to that device only: it is tied to the device’s identity, so it does not work from another browser or machine.

  • It lets the device back in directly, without the host approving again and without the password.
  • It is a secret. The server stores only a hash of it, so it cannot show it to you again. Keep it safe; it is shown under Settings → Session while you are connected.
  • The host has a token too (bh_…), shown once when the network is created. It resumes control of the network and can be rotated under Settings → Session.
  • The host sees everything and can remove a device, which also cancels that device’s token.

Coming back

On the home page, Continue lists the sessions saved on this device. Pick one and you are back in the same network, with the same code, devices, links and layout. You can also choose Use a token and paste one.

If you join the same network again with its code from a device that is already part of it, Zero Portal says Already connected from this device and asks you to continue with the saved session or paste the token. The code alone is not enough to take over an existing device; that is the point of the token.

If the token is no longer recognised, the network was destroyed, the device was removed by the host, or the network stayed offline for more than 7 days.

Remember sessions on this device

The switch at the bottom of the home page decides whether this browser saves your sessions. On (default): the Continue list shows recent sessions for one-click return. Off: nothing is saved, the list is cleared, and when you leave a network you are forgotten so you can join again as a new device later. Tokens are stored only in this browser.

Destroying a network

The host can remove a network at any time under Settings → Session → Destroy permanently. Everyone is disconnected and the code, tokens, invites and layout are deleted. This cannot be undone.

Server restarts

Sessions and device tokens are saved on the server’s disk, so they survive restarts and upgrades. Time the server spends down does not count against the 7 days.