# session.Session.sameTmuxIdAs

- **Module:** session.Session
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/session.ts#L441
- **Page:** https://libtmux.org/reference/ts/session-session-sametmuxidas/

```
session.Session.sameTmuxIdAs(other: : Session) -> boolean
```

Whether `other` carries the same `$n`, wherever it came from.

Sessions on unrelated servers routinely share an id; this says so, and
{@link equals} says they are still different sessions.

## Example

```ts
session.sameTmuxIdAs(await session.refreshed()); // true
```
