 | CookieSave Method (HttpResponse, String, DateTime, String) |
Save a simple a cookie
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 value
)
Public Shared Function Save (
pageResponse As HttpResponse,
name As String,
expiration As DateTime,
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 - value
- Type: SystemString
Value to save in the cookie
Return Value
Type:
BooleanTrue on success; False otherwise
See Also