Click or drag to resize

Cookie Class

Provides a set of methods and properties used to manage an HTTP Cookie.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.NetCookie

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
[SerializableAttribute]
public sealed class Cookie

The Cookie type exposes the following members.

Constructors
  NameDescription
Public methodCookie
Initializes a new instance of the Cookie class.
Public methodCookie(String, String)
Initializes a new instance of the Cookie class with the specified name and value.
Public methodCookie(String, String, String)
Initializes a new instance of the Cookie class with the specified name, value, and path.
Public methodCookie(String, String, String, String)
Initializes a new instance of the Cookie class with the specified name, value, path, and domain.
Top
Properties
  NameDescription
Public propertyComment
Gets or sets the value of the Comment attribute of the cookie.
Public propertyCommentUri
Gets or sets the value of the CommentURL attribute of the cookie.
Public propertyDiscard
Gets or sets a value indicating whether the client discards the cookie unconditionally when the client terminates.
Public propertyDomain
Gets or sets the value of the Domain attribute of the cookie.
Public propertyExpired
Gets or sets a value indicating whether the cookie has expired.
Public propertyExpires
Gets or sets the value of the Expires attribute of the cookie.
Public propertyHttpOnly
Gets or sets a value indicating whether non-HTTP APIs can access the cookie.
Public propertyName
Gets or sets the Name of the cookie.
Public propertyPath
Gets or sets the value of the Path attribute of the cookie.
Public propertyPort
Gets or sets the value of the Port attribute of the cookie.
Public propertySecure
Gets or sets a value indicating whether the security level of the cookie is secure.
Public propertyTimeStamp
Gets the time when the cookie was issued.
Public propertyValue
Gets or sets the Value of the cookie.
Public propertyVersion
Gets or sets the value of the Version attribute of the cookie.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Cookie.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as a hash function for a Cookie object.
(Overrides ObjectGetHashCode.)
Public methodToString
Returns a String that represents the current Cookie.
(Overrides ObjectToString.)
Top
Remarks

The Cookie class supports the following cookie formats: Netscape specification, RFC 2109, and RFC 2965

The Cookie class cannot be inherited.

See Also