RequestPathBaseCookieBuilder RequestPathBaseCookieBuilder RequestPathBaseCookieBuilder 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
RequestPathBaseCookieBuilderRequestPathBaseCookieBuilderRequestPathBaseCookieBuilderRequestPathBaseCookieBuilder

Constructors

RequestPathBaseCookieBuilder() RequestPathBaseCookieBuilder() RequestPathBaseCookieBuilder() RequestPathBaseCookieBuilder()

Properties

AdditionalPath AdditionalPath AdditionalPath AdditionalPath

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

Domain Domain Domain Domain

The domain to associate the cookie with.

(Inherited from CookieBuilder)
Expiration Expiration Expiration Expiration

Gets or sets the lifespan of a cookie.

(Inherited from CookieBuilder)
HttpOnly HttpOnly HttpOnly HttpOnly

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

(Inherited from CookieBuilder)
IsEssential IsEssential IsEssential 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 MaxAge MaxAge MaxAge

Gets or sets the max-age for the cookie.

(Inherited from CookieBuilder)
Name Name Name Name

The name of the cookie.

(Inherited from CookieBuilder)
Path Path Path Path

The cookie path.

(Inherited from CookieBuilder)
SameSite SameSite SameSite SameSite

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

(Inherited from CookieBuilder)
SecurePolicy SecurePolicy SecurePolicy 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) Build(HttpContext) Build(HttpContext) Build(HttpContext)

Creates the cookie options from the given context.

(Inherited from CookieBuilder)
Build(HttpContext, DateTimeOffset) Build(HttpContext, DateTimeOffset) Build(HttpContext, DateTimeOffset) Build(HttpContext, DateTimeOffset)

Applies to