 | CookieSave Method (HttpResponse, String, DateTime, String, String) |
Save a simple cookie with multiple keys
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static bool Save(
HttpResponse pageResponse,
string name,
DateTime expiration,
string[] key,
string[] value
)
Public Shared Function Save (
pageResponse As HttpResponse,
name As String,
expiration As DateTime,
key As String(),
value As String()
) As Boolean
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:
BooleanTrue on success; False otherwise
See Also