Links

HttpCookie

Wisej.Core.HttpCookie
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents a cookie value in the client browser.
C#
VB.NET
public class HttpCookie
Public Class HttpCookie

Constructors

HttpCookie(name)

Creates and names a new HttpCookie.
Name
Type
Description
name
String
Name of the cookie.

HttpCookie(name, value)

Creates, names, and assigned a new value to a new HttpCookie.
Name
Type
Description
name
String
Name of the cookie.
value
String
Value to assign to the cookie.

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.