# session_has

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L372
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-session_has/

```c
int session_has(struct session *s, struct window *w)
```

## Parameters

- `s` (`struct session *`)
- `w` (`struct window *`)

## Called by

- [`cmd_find_best_session_with_window`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_best_session_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L186)
- [`cmd_select_pane_redraw`](/en/tmux/3.2a/reference/c-function-cmd-select-pane-c-cmd_select_pane_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-pane.c#L76)
- [`recalculate_size_skip_client`](/en/tmux/3.2a/reference/c-function-resize-c-recalculate_size_skip_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L285)
- [`server_kill_window`](/en/tmux/3.2a/reference/c-function-server_kill_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L202)
- [`server_status_window`](/en/tmux/3.2a/reference/c-function-server_status_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L127)

## Referenced by

- [`clients_with_window`](/en/tmux/3.2a/reference/c-function-resize-c-clients_with_window/) (function)
- [`cmd_find_get_window_with_session`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_window_with_session/) (function)
- [`default_window_size_skip_client`](/en/tmux/3.2a/reference/c-function-resize-c-default_window_size_skip_client/) (function)
- [`session_new`](/en/tmux/3.2a/reference/c-function-session_new/) (function)

## Referenced declarations

- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`winlink.session`](/en/tmux/3.2a/reference/c-struct-winlink-session/) (attribute)
- [`winlink.wentry`](/en/tmux/3.2a/reference/c-struct-winlink-wentry/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`window.winlinks`](/en/tmux/3.2a/reference/c-struct-window-winlinks/) (attribute)
