# next_session_id

Source: https://libtmux.org/en/tmux/latest/catalog/formats/next_session_id/

> Unique session ID for next new session

format variable tmux3.7c

Unique session ID for next new session

* Scope

  Describes the server being formatted

* Type

  Text

* Usage

  `#{next_session_id}`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/formats/next_session_id/#description)

Unique session ID for next new session

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/formats/next_session_id/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/next_session_id/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/formats/next_session_id/#source)

* Defined in

  [`format.c:3395`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3395)

* C source reference

  [`format_cb_next_session_id`](https://libtmux.org/en/tmux/latest/reference/c-function-format-c-format_cb_next_session_id/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#next_session_id)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/formats/next_session_id/#used-by)

Library documentation that names this format variable.

* Go

  [`tmux.FormatValues.NextSessionID`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-nextsessionid/)
