CookieTempDataProviderOptions Class

Definition

Provides programmatic configuration for cookies set by CookieTempDataProvider

public ref class CookieTempDataProviderOptions
public class CookieTempDataProviderOptions
type CookieTempDataProviderOptions = class
Public Class CookieTempDataProviderOptions
Inheritance
CookieTempDataProviderOptions

Constructors

CookieTempDataProviderOptions()

Properties

Cookie

Determines the settings used to create the cookie in CookieTempDataProvider.

SameSite defaults to Lax. Setting this to Strict may cause browsers to not send back the cookie to the server in an OAuth login flow. SecurePolicy defaults to SameAsRequest. HttpOnly defaults to true. IsEssential defaults to false, This property is only considered when a user opts into the CookiePolicyMiddleware. If you are using this middleware and want to use CookieTempDataProvider, then either set this property to true or request user consent for non-essential cookies.

CookieName
Obsolete.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

The name of the cookie which stores TempData. Defaults to CookieName.

Domain
Obsolete.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

The domain set on a cookie. Defaults to null.

Path
Obsolete.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

The path set on the cookie. If set to null, the "path" attribute on the cookie is set to the current request's PathBase value. If the value of PathBase is null or empty, then the "path" attribute is set to the value of Path.

Applies to