Back to Devexpress

ASPxClientUtils.SetCookie(name, value) Method

aspnet-js-aspxclientutils-dot-setcookie-dot-static-x28-name-value-x29.md

latest1.1 KB
Original Source

ASPxClientUtils.SetCookie(name, value) Method

Creates or updates the HTTP cookie for the response.

Declaration

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

Parameters

NameTypeDescription
namestring

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.

| | sameSite | string | |

Remarks

Note

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

See Also

GetCookie.static

DeleteCookie.static

Cookies Support

ASPxClientUtils Class

ASPxClientUtils Members