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)
Extensions

Gets a collection of additional values to append to the cookie.

(Inherited from CookieBuilder)
HttpOnly

Indicates whether a cookie is inaccessible by client-side script. The default value is false but specific components may use a different value.

(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 but specific components may use a different value.

(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 but specific components may use a different value.

(Inherited from CookieBuilder)
SecurePolicy

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

(Inherited from CookieBuilder)

Methods

Build(HttpContext, DateTimeOffset)

Configures Path if not explicitly configured.

Build(HttpContext)

Creates the cookie options from the given context.

(Inherited from CookieBuilder)

Applies to