Click or drag to resize
CookieSave Method (HttpResponse, String, DateTime, String, String, String, String)
Save an advanced cookie with multiple keys

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static bool Save(
	HttpResponse pageResponse,
	string name,
	DateTime expiration,
	string[] key,
	string[] value,
	string domain,
	string path
)

Parameters

pageResponse
Type: System.WebHttpResponse
Response of the page (usually Page.Response)
name
Type: SystemString
Name of the cookie to save
expiration
Type: SystemDateTime
Espiration date of the cookie
key
Type: SystemString
Collection of keys
value
Type: SystemString
Collection of values
domain
Type: SystemString
Gets or sets the domain to associate the cookie with
path
Type: SystemString
Gets or sets the virtual path to transmit with the current cookie

Return Value

Type: Boolean
True on success; False otherwise
See Also