# session.Session.sameTmuxIdAs

- **Module:** session.Session
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/session.ts#L448
- **Page:** https://libtmux.org/en/ts/latest/reference/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
```
