RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.Cookies Property

Lists all cookie headers that should be sent with the response.

Pascal
property Cookies: TCookieCollection;
C++
__property TCookieCollection Cookies;

Use Cookies to obtain direct access to the individual TCookie objects that represent the fields of the cookie headers in the response message. Each TCookie object represents in individual cookie header that is included with the response message. 

Use the Add method of the cookie collection to add a single cookie to the collection, or use the SetCookieField method to add multiple related cookie headers to this collection. SetCookieField creates and adds new cookies that share a common set of values for the domain, path, expires, and secure fields. Use the HeaderValue property of the individual entries in Cookies to determine the actual response header string that is sent for each cookie header.

Note: For more information about the use of cookies, see the documentation on Netscape's Web site.
 

 

SetCookieField 

Cookie 

TCookie 

Describing the Server Application

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!