Click or drag to resize
CookieSave Method (HttpResponse, String, DateTime, String, String)
Save a simple 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
)

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

Return Value

Type: Boolean
True on success; False otherwise
See Also