HttpCookie

Wisej.Core.HttpCookie

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.0.0.0)

Represents a cookie value in the client browser.

public class HttpCookie

Constructors

HttpCookie(name)

Creates and names a new HttpCookie.

Name
Type
Description

name

Name of the cookie.

HttpCookie(name, value)

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

Name
Type
Description

name

Name of the cookie.

value

Value to assign to the cookie.

Properties

Domain

Stringarrow-up-right: Restricts domain cookie is to be used with.

Expires

DateTimearrow-up-right: Expiration time for the cookie (in minutes).

HasKeys

Booleanarrow-up-right: Return whether the cookie has sub-keys.

HttpOnly

Booleanarrow-up-right: Indicates whether the cookie should have HttpOnly attribute

Item(key)

Stringarrow-up-right: Returns or sets a value in a cookie with multple values.

Name

Stringarrow-up-right: Returns or sets the name of the cookie.

Path

Stringarrow-up-right: Returns or sets the URL prefix to transmit with the cookie.

SameSite

SameSiteMode: Returns or sets the SameSiteMode for the cookie.

Secure

Booleanarrow-up-right: Indicates whether the cookie should be transmitted only over HTTPS.

Value

Stringarrow-up-right: Returns or sets the cookie value.

Values

NameValueCollectionarrow-up-right: Returns an individual key:value pairs within a single cookie object with multple values.

Last updated

Was this helpful?