Icon THTTPCookies

Unit: WebSrvr

Inherits From TExternalObject

Available In: Server Applications

The THTTPCookies class is by the TWebServerRequest class to represent 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. When a request is sent to the web server, any included cookies will be available in the TWebServerRequest RequestCookies property.

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