Skip to main content
Version: 3.5

HttpCookie

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Represents a cookie value in the client browser.

public class HttpCookie

Constructors

Instance memberHttpCookie(name)

Creates and names a new HttpCookie.

NameTypeDescription
nameStringName of the cookie.

Instance memberHttpCookie(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 memberDomain

String: Restricts domain cookie is to be used with.

Instance memberExpires

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

Instance memberHasKeys

Boolean: Return whether the cookie has sub-keys.

Instance memberHttpOnly

Boolean: Indicates whether the cookie should have HttpOnly attribute

Instance memberItem(key)

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

Instance memberName

String: Returns or sets the name of the cookie.

Instance memberPath

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

Instance memberSameSite

SameSiteMode: Returns or sets the SameSiteMode for the cookie.

Instance memberSecure

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

Instance memberValue

String: Returns or sets the cookie value.

Instance memberValues

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