Skip to main content

ASPxClientUtils.SetCookie(name, value) Method

Creates or updates the HTTP cookie for the response.


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


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.



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

See Also