# LibTmux.FSharp.Session.rename

- **Module:** LibTmux.FSharp
- **Package:** LibTmux.FSharp
- **Language:** F#
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.FSharp/Hierarchy.fsi#L125
- **Page:** https://libtmux.org/en/fsharp/latest/reference/libtmux-fsharp-session-rename/

```
val rename:
        cancellationToken: CancellationToken -> name: string -> session: LibTmux.Session -> Task<LibTmux.Session>
```

Renames the session and returns a handle carrying the new name.

tmux expands the name as a format, so a <c>#</c> in it does not survive verbatim.

## Parameters

- `cancellationToken` (`CancellationToken`)
- `name` (`string`)
- `session` (`LibTmux.Session`)
