# client.last_session

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.h#L2199
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-struct-client-last_session/

```c
struct session * last_session;
```

## Referenced by

- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function)
- [`cmd_switch_client_exec`](/en/tmux/3.7c/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function)
- [`format_cb_client_last_session`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_client_last_session/) (function)
- [`server_client_set_session`](/en/tmux/3.7c/reference/c-function-server_client_set_session/) (function)
- [`server_destroy_session`](/en/tmux/3.7c/reference/c-function-server_destroy_session/) (function)

## Referenced declarations

- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
