Cookie
Namespace: Wisej.Base
Assembly: Wisej.Framework (3.5.0.0)
Represents an individual HTTP cookie.
- C#
- VB.NET
public class Cookie
Public Class Cookie
Constructors
Cookie()
Creates a new instance of Cookie.
Cookie(name, value)
Creates a new instance of Cookie.
| Name | Type | Description |
|---|---|---|
| name | String | The name of the cookie. |
| value | String | The value of the cookie. |
Cookie(name, value, domain)
Creates a new instance of Cookie.
| Name | Type | Description |
|---|---|---|
| name | String | The name of the cookie. |
| value | String | The value of the cookie. |
| domain | String | The domain, or partial domain, associated with the cookie. |
Cookie(name, value, expires)
Creates a new instance of Cookie.
| Name | Type | Description |
|---|---|---|
| name | String | The name of the cookie. |
| value | String | The value of the cookie. |
| expires | DateTime | The expiration date/time of the cookie. |
Cookie(name, value, domain, expires)
Creates a new instance of Cookie.
| Name | Type | Description |
|---|---|---|
| name | String | The name of the cookie. |
| value | String | The value of the cookie. |
| domain | String | The domain, or partial domain, associated with the cookie. |
| expires | DateTime | The expiration date/time of the cookie. |
Properties
Domain
String: Returns or sets the domain to associate the cookie with.
Expires
DateTime: Returns or sets the expiration date and time for the cookie.
Name
String: Returns or sets the name for the Cookie.
Path
String: Returns or sets the path of the Cookie.
SameSite
SameSiteMode: Returns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified.
Secure
Boolean: Returns or sets whether to transmit the cookie using Secure Sockets Layer (SSL)--that is, over HTTPS only.
Value
String: Returns or sets an individual cookie value.