# session.Session.sameTmuxIdAs

- **Module:** session
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/session.ts#L528
- **Page:** https://libtmux.org/en/ts/latest/reference/session-session-sametmuxidas/

```
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
[`equals`](/en/ts/latest/reference/session-session-equals/) says they are still different sessions.

## Examples

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

## Parameters

- `other` (`Session`)
