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.

expirationDate Date

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