# session

- **Language:** C
- **Kind:** struct
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.h#L1517
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-struct-session/

```c
struct session;
```

## Members

### Other members

- [`activity_time`](/en/tmux/latest/reference/c-struct-session-activity_time/) (attribute)
- [`attached`](/en/tmux/latest/reference/c-struct-session-attached/) (attribute)
- [`creation_time`](/en/tmux/latest/reference/c-struct-session-creation_time/) (attribute)
- [`curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`cwd`](/en/tmux/latest/reference/c-struct-session-cwd/) (attribute)
- [`entry`](/en/tmux/latest/reference/c-struct-session-entry/) (attribute)
- [`entry (anonymous struct)`](/en/tmux/latest/reference/c-struct-session-[struct]-entry/) (struct)
- [`environ`](/en/tmux/latest/reference/c-struct-session-environ/) (attribute)
- [`flags`](/en/tmux/latest/reference/c-struct-session-flags/) (attribute)
- [`gentry`](/en/tmux/latest/reference/c-struct-session-gentry/) (attribute)
- [`gentry (anonymous struct)`](/en/tmux/latest/reference/c-struct-session-[struct]-gentry/) (struct)
- [`id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`last_activity_time`](/en/tmux/latest/reference/c-struct-session-last_activity_time/) (attribute)
- [`last_attached_time`](/en/tmux/latest/reference/c-struct-session-last_attached_time/) (attribute)
- [`lastw`](/en/tmux/latest/reference/c-struct-session-lastw/) (attribute)
- [`lock_timer`](/en/tmux/latest/reference/c-struct-session-lock_timer/) (attribute)
- [`name`](/en/tmux/latest/reference/c-struct-session-name/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`references`](/en/tmux/latest/reference/c-struct-session-references/) (attribute)
- [`statusat`](/en/tmux/latest/reference/c-struct-session-statusat/) (attribute)
- [`statuslines`](/en/tmux/latest/reference/c-struct-session-statuslines/) (attribute)
- [`tio`](/en/tmux/latest/reference/c-struct-session-tio/) (attribute)
- [`windows`](/en/tmux/latest/reference/c-struct-session-windows/) (attribute)

## Referenced by

- [`cmd_attach_session_entry`](/en/tmux/latest/reference/c-variable-cmd_attach_session_entry/) (attribute)
- [`cmd_detach_client_entry`](/en/tmux/latest/reference/c-variable-cmd_detach_client_entry/) (attribute)
- [`cmd_has_session_entry`](/en/tmux/latest/reference/c-variable-cmd_has_session_entry/) (attribute)
- [`cmd_kill_session_entry`](/en/tmux/latest/reference/c-variable-cmd_kill_session_entry/) (attribute)
- [`cmd_last_window_entry`](/en/tmux/latest/reference/c-variable-cmd_last_window_entry/) (attribute)
- [`cmd_list_clients_entry`](/en/tmux/latest/reference/c-variable-cmd_list_clients_entry/) (attribute)
- [`cmd_list_windows_entry`](/en/tmux/latest/reference/c-variable-cmd_list_windows_entry/) (attribute)
- [`cmd_lock_session_entry`](/en/tmux/latest/reference/c-variable-cmd_lock_session_entry/) (attribute)
- [`cmd_new_session_entry`](/en/tmux/latest/reference/c-variable-cmd_new_session_entry/) (attribute)
- [`cmd_next_window_entry`](/en/tmux/latest/reference/c-variable-cmd_next_window_entry/) (attribute)
- [`cmd_previous_window_entry`](/en/tmux/latest/reference/c-variable-cmd_previous_window_entry/) (attribute)
- [`cmd_rename_session_entry`](/en/tmux/latest/reference/c-variable-cmd_rename_session_entry/) (attribute)
- [`cmd_set_environment_entry`](/en/tmux/latest/reference/c-variable-cmd_set_environment_entry/) (attribute)
- [`cmd_show_environment_entry`](/en/tmux/latest/reference/c-variable-cmd_show_environment_entry/) (attribute)
- [`CMD_SRCDST_SESSION_USAGE`](/en/tmux/latest/reference/c-define-tmux-h-cmd_srcdst_session_usage/) (constant)
- [`cmd_switch_client_entry`](/en/tmux/latest/reference/c-variable-cmd_switch_client_entry/) (attribute)
- [`CMD_TARGET_SESSION_USAGE`](/en/tmux/latest/reference/c-define-tmux-h-cmd_target_session_usage/) (constant)
- [`DEFAULT_SESSION_MENU`](/en/tmux/latest/reference/c-define-key-bindings-c-default_session_menu/) (constant)
- [`options_table_status_format_default`](/en/tmux/latest/reference/c-variable-options-table-c-options_table_status_format_default/) (attribute)
- [`OPTIONS_TABLE_STATUS_FORMAT3`](/en/tmux/latest/reference/c-define-options-table-c-options_table_status_format3/) (constant)
- [`WINDOW_CLIENT_DEFAULT_FORMAT`](/en/tmux/latest/reference/c-define-window-client-c-window_client_default_format/) (constant)
- [`window_client_mode`](/en/tmux/latest/reference/c-variable-window_client_mode/) (attribute)
