[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / SessionOptions

# Interface: SessionOptions

Defined in: [flow/src/decorators.ts:924](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/decorators.ts#L924)

Options for [session](../functions/session).

## Properties

### key?

> `optional` **key?**: `string`

Defined in: [flow/src/decorators.ts:926](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/decorators.ts#L926)

Session key to read and write. Defaults to the property's own name.

***

### scoped?

> `optional` **scoped?**: `boolean`

Defined in: [flow/src/decorators.ts:932](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/decorators.ts#L932)

Namespace the key to this component (`flow:<Component>:<key>`), so the value belongs to
this page alone and cannot collide with another component's field of the same name.
Default: `false` — the key is the session's own.
