Skip to main content
Version: 3.5

Cookie

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.5.0.0)

Represents an individual HTTP cookie.

public class Cookie

Constructors

Creates a new instance of Cookie.

Creates a new instance of Cookie.

NameTypeDescription
nameStringThe name of the cookie.
valueStringThe value of the cookie.

Creates a new instance of Cookie.

NameTypeDescription
nameStringThe name of the cookie.
valueStringThe value of the cookie.
domainStringThe domain, or partial domain, associated with the cookie.

Creates a new instance of Cookie.

NameTypeDescription
nameStringThe name of the cookie.
valueStringThe value of the cookie.
expiresDateTimeThe expiration date/time of the cookie.

Creates a new instance of Cookie.

NameTypeDescription
nameStringThe name of the cookie.
valueStringThe value of the cookie.
domainStringThe domain, or partial domain, associated with the cookie.
expiresDateTimeThe expiration date/time of the cookie.

Properties

Instance memberDomain

String: Returns or sets the domain to associate the cookie with.

Instance memberExpires

DateTime: Returns or sets the expiration date and time for the cookie.

Instance memberName

String: Returns or sets the name for the Cookie.

Instance memberPath

String: Returns or sets the path of the Cookie.

Instance memberSameSite

SameSiteMode: Returns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified.

Instance memberSecure

Boolean: Returns or sets whether to transmit the cookie using Secure Sockets Layer (SSL)--that is, over HTTPS only.

Instance memberValue

String: Returns or sets an individual cookie value.