The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientUtils.SetCookie(name, value) Method

Creates or updates the HTTP cookie for the response.

Declaration

static SetCookie(name: string, value: string, expirationDate?: Date): void

Parameters

Name Type Description
name string

A string value that represents the name of a cookie.

value string

A string representing the cookie value.

Optional Parameters

Name Type Default Description
expirationDate Date null

A date-time object that represents the expiration date and time for the cookie.

Remarks

Note

Refer to the RFC 2965 - Section 4.1.1 Syntax document to learn about allowed characters in cookies.

See Also