 | CookieSave Method (HttpResponse, String, DateTime, String, String, String, String) |
Save an advanced 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,
string domain,
string path
)
Public Shared Function Save (
pageResponse As HttpResponse,
name As String,
expiration As DateTime,
key As String(),
value As String(),
domain As String,
path 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 - 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:
BooleanTrue on success; False otherwise
See Also