Click or drag to resize

Cookie Constructor (String, String, String, String)

Initializes a new instance of the Cookie class with the specified name, value, path, and domain.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public Cookie(
	string name,
	string value,
	string path,
	string domain
)

Parameters

name
Type: SystemString
A String that represents the Name of the cookie.
value
Type: SystemString
A String that represents the Value of the cookie.
path
Type: SystemString
A String that represents the value of the Path attribute of the cookie.
domain
Type: SystemString
A String that represents the value of the Domain attribute of the cookie.
Exceptions
ExceptionCondition
CookieException

name is or empty.

- or -

name contains an invalid character.

- or -

value is .

- or -

value contains a string not enclosed in double quotes that contains an invalid character.

See Also