# libtmux.Window.session

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

```
libtmux.Window.session(self) -> Session
```

Parent session of window.

## In other ports

### Find the session containing a window placement

- Ruby: [`LibTmux::WindowLink#session`](/en/ruby/latest/reference/libtmux-windowlink-session/) (method)
- Lua: [`libtmux.SnapshotWindowLink.session`](/en/lua/latest/reference/libtmux-snapshotwindowlink-session/) (attribute)
- TypeScript: [`window.Window.session`](/en/ts/latest/reference/window-window-session/) (method)
- Rust: [`window.Window.session`](/en/rs/latest/reference/window-window-session/) (method)
- Go: [`tmux.Window.Session`](/en/go/latest/reference/tmux-window-session/) (method)
- Java: [`io.github.libtmux.Window.Window.session`](/en/java/latest/reference/io-github-libtmux-window-window-session/) (method)
- C#: [`LibTmux.Window.Session`](/en/csharp/latest/reference/libtmux-window-session/) (property)
- C++: [`libtmux::Window::session`](/en/cxx/latest/reference/libtmux-window-session/) (method)
- Kotlin: [`io.github.libtmux.kotlin.Window.session`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window-session/) (property)
- Scala: [`io.github.libtmux.scaladsl.Window.session`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window-session/) (method)
