# libtmux.Server.attached_sessions

- **Module:** libtmux.Server
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/server.py#L414
- **Page:** https://libtmux.org/reference/py/libtmux-server-attached_sessions/

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

Return active :class:`Session` instances.

## Returns

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

## Example

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