CookieLife Type

For how long should the cookie persist in the client's browser?

Union cases

Union case Description

MaxAge duration

Full Usage: MaxAge duration

Parameters:

For the duration of the passed TimeSpan.

duration : TimeSpan

Session

Full Usage: Session

Until the browser session ends.

Instance members

Instance member Description

this.IsMaxAge

Full Usage: this.IsMaxAge

Returns: bool
Returns: bool

this.IsSession

Full Usage: this.IsSession

Returns: bool
Returns: bool