HttpCookie
Wisej.Core.HttpCookie
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents a cookie value in the client browser.
Constructors
HttpCookie(name)
Creates and names a new HttpCookie.
Name | Type | Description |
---|---|---|
name | Name of the cookie. |
HttpCookie(name, value)
Creates, names, and assigned a new value to a new HttpCookie.
Properties
Domain
String: Restricts domain cookie is to be used with.
Expires
DateTime: Expiration time for the cookie (in minutes).
HasKeys
Boolean: Return whether the cookie has sub-keys.
HttpOnly
Boolean: Indicates whether the cookie should have HttpOnly attribute
Item(key)
String: Returns or sets a value in a cookie with multple values.
Name
String: Returns or sets the name of the cookie.
Path
String: Returns or sets the URL prefix to transmit with the cookie.
SameSite
SameSiteMode: Returns or sets the SameSiteMode for the cookie.
Secure
Boolean: Indicates whether the cookie should be transmitted only over HTTPS.
Value
String: Returns or sets the cookie value.
Values
NameValueCollection: Returns an individual key:value pairs within a single cookie object with multple values.
Last updated