# program.Program.sessionName

- **Module:** program
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/program.ts#L45
- **Page:** https://libtmux.org/en/ts/latest/reference/program-program-sessionname/

The session the program runs in: a detached one of its own, removed with it, or with `from` that pane's session, which loses only the program's window or split. [`tmux attach -t`](/en/tmux/latest/manual/attach-session/) it to watch the program.

## Examples

```ts
await using program = await server.spawn(["sleep", "1"]);
program.sessionName.startsWith("libtmux-program-"); // true
```
