RequestPathBaseCookieBuilder Class

Definition

A cookie builder that sets Path to the request path base.

public ref class RequestPathBaseCookieBuilder : Microsoft::AspNetCore::Http::CookieBuilder
public class RequestPathBaseCookieBuilder : Microsoft.AspNetCore.Http.CookieBuilder
type RequestPathBaseCookieBuilder = class
    inherit CookieBuilder
Public Class RequestPathBaseCookieBuilder
Inherits CookieBuilder
Inheritance
RequestPathBaseCookieBuilder

Constructors

RequestPathBaseCookieBuilder()

Properties

AdditionalPath

Gets an optional value that is appended to the request path base.

Domain

The domain to associate the cookie with.

(Inherited from CookieBuilder)
Expiration

Gets or sets the lifespan of a cookie.

(Inherited from CookieBuilder)
HttpOnly

Indicates whether a cookie is accessible by client-side script.

(Inherited from CookieBuilder)
IsEssential

Indicates if this cookie is essential for the application to function correctly. If true then consent policy checks may be bypassed. The default value is false.

(Inherited from CookieBuilder)
MaxAge

Gets or sets the max-age for the cookie.

(Inherited from CookieBuilder)
Name

The name of the cookie.

(Inherited from CookieBuilder)
Path

The cookie path.

(Inherited from CookieBuilder)
SameSite

The SameSite attribute of the cookie. The default value is Unspecified

(Inherited from CookieBuilder)
SecurePolicy

The policy that will be used to determine . This is determined from the HttpContext passed to Build(HttpContext, DateTimeOffset).

(Inherited from CookieBuilder)

Methods

Build(HttpContext)

Creates the cookie options from the given context.

(Inherited from CookieBuilder)
Build(HttpContext, DateTimeOffset)

Applies to