# types.MoveWindowOptions.session

- **Module:** types.MoveWindowOptions
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L394
- **Page:** https://libtmux.org/en/ts/latest/reference/types-movewindowoptions-session/

Destination session; the window stays in its own session when omitted.

Omitted means this window's session, not tmux's current one — tmux reads a
destination of `:3` as index 3 of whichever session it happens to consider
current, which is rarely the one a caller holding this window means.

A {@link Session} handle is checked against this window's server before
the command runs. A string is not: a tmux id means something else on every
other daemon, and only a handle carries which one it came from.
