Icon THTTPCookie

Unit: WebSrvr

Inherits From TExternalObject

Available In: Server Applications

The THTTPCookie class is used with the THTTPCookies class to represent an HTTP cookie in the set of HTTP cookies included with an incoming web server request, as well as the HTTP cookies that are set in response to the web server request.

HTTP cookies are text items set by server applications and/or native server modules and returned to the browser, where they are cached according to the THTTPCookie Expires and MaxAge properties. In addition, the cookies are sent back to the same server applications and/or native server modules with any subsequent web server requests. Which cookies are sent with which server requests is controlled by the THTTPCookie Domain, Path, and Secure properties.

Image