Class Cookie
- Namespace
- Dynamicweb.Environment
- Assembly
- Dynamicweb.Core.dll
Provides a type safe way to work and manipulate http cookies
- Inheritance
-
Cookie
- Inherited Members
Constructors
Cookie(string)
Initialize a new instance of the Cookie class with the specified name and an empty value
Parameters
name
stringThe name of the Cookie
Cookie(string, string)
Initializes a new instance of the Cookie class with the specified name and value
Parameters
Properties
Domain
Gets or sets the domain to associate the cookie with
Property Value
Expires
Gets or sets the expiration date and time for the cookie
Property Value
HasKeys
Gets a value indicating whether a cookie has subkeys
Property Value
HttpOnly
Gets or sets a value that specifies whether a cookie is accessible by client-side script
Property Value
this[string]
Gets the value for the specified key
Parameters
key
stringThe key for which to get it's value
Property Value
Name
Gets or sets the name of a cookie
Property Value
Path
Gets or sets the virtual path to transmit with the cookie
Property Value
SameSite
Specifies the value for the SameSite attribute of the cookie
Property Value
Secure
Gets or sets a value indicating whether to transmit the cookie using secure sockets layer (SSL), that is over HTTPS only
Property Value
Shareable
Determines whether the cookie is allowed to participate in output caching
Property Value
Value
Gets or sets an individual cookie value
Property Value
Values
Gets a collection of key/value pairs that are contained within a single cookie object