Docs

Roaming sessions

Your sessions belong to your sign-in, not to one browser window. Close a window and carry on in another.

In short

Sessions in WND Terminal in a browser run on your organization’s gateway. When a window closes they keep running while your sign-in lasts, and Your open sessions lists them in every other window of the same sign-in. With default settings a session left running closes about 30 minutes after the sign-in was last used, and never later than keep_minutes (8 hours). Attach brings one into the window as it was, still logged on. A new sign-in, even by you, starts with none. A session is open in one window at a time, and nobody else sees it.

In WND Terminal in a browser, your sessions belong to your sign-in, not to one browser window. Close a window and the sessions in it keep running. Open WND Terminal in another window, still signed in, and carry on.

Your sessions run on your organization’s gateway. When you close a window, they keep running there. Every window that uses the same sign-in (the tabs and windows of one browser) shows Your open sessions at the top of the page:

Your open sessions
  Test TSO  127.0.0.1:23  Open on Chrome on Windows, used 5 minutes ago         Attach  End
  Payroll   ibmi.bank:23  Left running on Chrome on Windows, closes in 7 hours  Attach  End
  • Attach brings the session into this window as it was, with the same screen, at the same place in the application, still logged on. Nothing is sent to the host.
  • End closes the session, wherever it is open.

One sign-in, not one device

Sessions stay with the sign-in that opened them. Signing in again starts with an empty list, even as the same person. This happens when you sign in on another computer, tablet or phone, in another browser or a private window, or after your sign-in ended. Closing every window of the browser usually ends the sign-in too: the gateway’s sign-in cookie lasts only while the browser is open, unless the browser restores its previous session. Sessions left running then close at the idle timeout, or after keep_minutes if that is shorter. Sessions from another sign-in never appear in it and can’t be attached. To work on another device, open the session there again. Sessions that an AI agent or a screen-flow API call opens with your token are separate too: they are not in Your open sessions and can’t be attached (see AI agents).

One window at a time

A session is open in one window at a time. Attaching it in another window takes it from the window that had it. That window’s tab then says Continued on and the other window’s browser and system, such as Chrome on Windows, with Bring it back here and Close tab. Only the window that has the session can type in it.

Leaving a session running

Closing a tab asks whether to disconnect. In a browser it also offers Leave it running. The tab closes, and the session waits in Your open sessions. Attach it from another window of the same sign-in.

When sessions left running close

A session nobody has open closes at the first of these:

  • keep_minutes after it was left (8 hours by default, and IT can change it);
  • you leave more than 8 sessions running (IT can change the number), in which case the one left longest closes;
  • your sign-in ends.

Your sign-in ends, and every session in it closes within about 15 seconds, when:

  • you Sign out;
  • WND Terminal wasn’t used for the idle timeout (idle_timeout_minutes, 30 minutes by default). Only keys, clicks and commands count. A session left running with no window open is not use. So, with the default settings, a session left running closes about 30 minutes after you last used this sign-in, unless you use it in another window;
  • the sign-in reaches its maximum age (max_session_hours, 12 hours by default);
  • with a company identity provider, your group check expires or the gateway’s sign-in setup changes.

Sessions are also closed if a published policy removes your access to the terminal. The window is told why. Sign in again to start new sessions.

The host has its own timeouts. TSO logs a session off after it has had no input for a while, and so do CICS and IBM i. A session left running past them is still there, at the host’s logon or sign-on screen.

Another person never sees your sessions, in the list or anywhere else.

For IT

Roaming is on by default. In the gateway’s configuration (gateway.toml):

[roaming]
enabled = true
keep_minutes = 480
max_sessions_per_person = 8

On a small screen, swipe the table to read all columns.

Setting Default What it does
enabled true Sessions belong to the browser sign-in and can be left running and attached from another window of it. false: each browser window has its own sessions, which close when it closes (after reconnect_grace_seconds for a dropped connection).
keep_minutes 480 How long a session nobody has open keeps running (1 to 10080), at most while its sign-in lasts. To keep sessions left running longer than the idle timeout, IT also raises [sign_in] idle_timeout_minutes.
max_sessions_per_person 8 The most sessions one sign-in can leave running with no window open.

Sessions left running still count toward [limits] max_sessions_per_user and max_sessions, and toward the license’s seats like any other.

A dropped connection (Wi-Fi changing) still comes back by itself within reconnect_grace_seconds (60), with no list and no attaching. With more than one gateway behind a load balancer, keep the sticky sessions. A sign-in’s sessions are on the gateway it signed in to.

The audit log

On a small screen, swipe the table to read all columns.

Event When
session.attach A session continued in another window. With that window’s device (device) and its address (client_address).
session.taken The window that had the session was told it continued elsewhere. With that window’s device, and the device that took it (by).
session.detach Nobody has the session open any more. It was left running, or its window closed. With keep_minutes.
session.expired A session closed because nobody continued it in time, more than max_sessions_per_person were left, or its sign-in ended.

Each has the session’s name, host and port, and the person, like every session event. session.connect and session.disconnect are as before.

The protocol

The browser and the gateway talk over one WebSocket. Roaming adds four calls and one event, and changes nothing that was there.

On a small screen, swipe the table to read all columns.

Message What it does
sessions.list The sign-in’s sessions: id, name, host, port, opened_at, last_activity, state (here, elsewhere, away, left), attached_by (a device), closes_at, badges (shared while the help desk views it).
session.attach {id} Continue the session in this window. Answers with its screen.
session.detach {id} Leave it running.
session.end {id} Close it.
event session.taken {id, by, ended} To the window that had a session another window attached (or ended).

hello also says which device this is (device) and whether sessions roam (roaming).

Questions

Does attaching a session send anything to the host?

No. The session comes into the window with the same screen, at the same place in the application. Nothing is sent to the host.

How long does a session left running last?

Up to 8 hours by default (IT can set keep_minutes from 1 to 10080), and never longer than your sign-in. It closes when you sign out or your sign-in ends, which with the default idle timeout is about 30 minutes after you last used WND Terminal. The host’s own timeouts still apply, so TSO, CICS or IBM i may log the session off first.

Can someone else attach my session?

No. Another person never sees your sessions, in the list or anywhere else.

See it on your own mainframe.

Install WND Terminal on a handful of PCs or Macs, import your sessions and keymaps, and let a real team use it next to what you run today. Free, two to four weeks.