# libtmux.Server.attached_sessions

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/server.py#L411
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-server-attached_sessions/

```
libtmux.Server.attached_sessions(self) -> list[Session]
```

Return active :class:`Session` instances.

## Examples

```python
>>> server.attached_sessions
[]
```

## Returns

list[:class:`Session`]
    Sessions that are attached.

## In other ports

### List the sessions a client is attached to

- Rust: [`server.Server.attached_sessions`](/en/rs/latest/reference/server-server-attached_sessions/) (method)
- Java: [`io.github.libtmux.Server.Server.attachedSessions`](/en/java/latest/reference/io-github-libtmux-server-server-attachedsessions/) (method)
- C#: [`LibTmux.Server.GetAttachedSessionsAsync`](/en/csharp/latest/reference/libtmux-server-getattachedsessionsasync/) (method)
