Skip to main content
Version: 4.1

HttpCookie

Namespace: Wisej.Core

Assembly: Wisej.Framework (4.1.0.0)

Represents a cookie value in the client browser.

public class HttpCookie

Constructors

Instance member HttpCookie(name)

Creates and names a new HttpCookie.

NameTypeDescription
nameStringName of the cookie.

Instance member HttpCookie(name, value)

Creates, names, and assigned a new value to a new HttpCookie.

NameTypeDescription
nameStringName of the cookie.
valueStringValue to assign to the cookie.

Properties

Instance member Domain

String: Restricts domain cookie is to be used with.

Instance member Expires

DateTime: Expiration time for the cookie (in minutes).

Instance member HasKeys

Boolean: Return whether the cookie has sub-keys.

Instance member HttpOnly

Boolean: Indicates whether the cookie should have HttpOnly attribute

Instance member Item(key)

String: Returns or sets a value in a cookie with multple values.

Instance member Name

String: Returns or sets the name of the cookie.

Instance member Path

String: Returns or sets the URL prefix to transmit with the cookie.

Instance member SameSite

SameSiteMode: Returns or sets the SameSiteMode for the cookie.

Instance member Secure

Boolean: Indicates whether the cookie should be transmitted only over HTTPS.

Instance member Value

String: Returns or sets the cookie value.

Instance member Values

NameValueCollection: Returns an individual key:value pairs within a single cookie object with multple values.