# TlsSessionResumptionMode

`import { TlsSessionResumptionMode } from "destack:tls/binding";`

TLS session resumption policy.

```ds title="TlsSessionResumptionMode"
export enum TlsSessionResumptionMode {
    Disabled = 0,
    Stateful = 1,
    Stateless = 2,
    StatefulAndStateless = 3,
}
```

[language/library/src/tls/binding/context.ds:34:43](https://github.com/destack-sh/destack/blob/main/language/library/src/tls/binding/context.ds#L34-L43)

## Variants

### `Disabled = 0`

Disable session resumption.

### `Stateful = 1`

Enable stateful session cache resumption.

### `Stateless = 2`

Enable stateless ticket resumption.

### `StatefulAndStateless = 3`

Enable stateful and stateless resumption.
