# LibTmux::Model::WindowLink.session-id

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Fields.rakumod#L32
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowlink-session-id/

```
method session-id(--> SessionId:D)
```

Captured [`session_id`](/en/tmux/latest/catalog/formats/session_id/); local session-id access.

Captured [`session_id`](/en/tmux/latest/catalog/formats/session_id/); local session-id access.

## In other ports

The id of the session a window was reached through

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.session_id`](/en/py/latest/reference/libtmux-window-session_id/) (attribute) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Window` |
| Rust | [`window.Window.session_id`](/en/rs/latest/reference/window-window-session_id/) (method) |
| Go | [`tmux.Window.SessionID`](/en/go/latest/reference/tmux-window-sessionid/) (method) |
| Java | no equivalent on `Window` |
| C# | no equivalent on `Window` |
| C++ | [`libtmux::Window::session_id`](/en/cxx/latest/reference/libtmux-window-session_id-2uq6/) (method) |
| Swift | no equivalent on `Window` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Use link->session->id; physical Window identity is separate from session placement. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
