AppendCookie Method

Syntax

Context.Response.AppendCookie as V (Cookie as System::Web::HttpCookie)

Arguments

CookieSystem::Web::HttpCookie

The cookie to add.

Description

Adds a cookie to the response's cookie collection.

Discussion

Context.Response.AppendCookie(Cookie) adds a cookie to the response's cookie collection.

Example

dim newCookie as System::Web::HttpCookie = new System::Web::HttpCookie(cookieName)
newCookie.HttpOnly = .t.
newCookie.Value = "This is the cookie's value."
Context.Response.AppendCookie(newCookie)

See Also