CookieBuilder Class 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines settings used to create a cookie.
public ref class CookieBuilderpublic class CookieBuildertype CookieBuilder = classPublic Class CookieBuilder- Inheritance
- 
				CookieBuilder
- Derived
Constructors
| CookieBuilder() | 
Properties
| Domain | The domain to associate the cookie with. | 
| Expiration | Gets or sets the lifespan of a cookie. | 
| Extensions | Gets a collection of additional values to append to the cookie. | 
| HttpOnly | Indicates whether a cookie is inaccessible by client-side script. The default value is  | 
| 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  | 
| MaxAge | Gets or sets the max-age for the cookie. | 
| Name | The name of the cookie. | 
| Path | The cookie path. | 
| SameSite | The SameSite attribute of the cookie. The default value is Unspecified but specific components may use a different value. | 
| SecurePolicy | The policy that will be used to determine Secure. This is determined from the HttpContext passed to Build(HttpContext, DateTimeOffset). | 
Methods
| Build(HttpContext, DateTimeOffset) | Creates the cookie options from the given  | 
| Build(HttpContext) | Creates the cookie options from the given  |