Internet Direct (Indy) Version 9.0.2 Beta
TIdServerCookies.Add
Creates a server Cookie class instance to be added to the collection.

function Add: TIdServerCookie;
Returns
TIdServerCookie - Server Cookie class instance added to the collection.

Description
Add is a TIdServerCookie function that creates a new instance of TIdServerCookie to be added to the Cookie collection. Add creates the Cookie class instance using the TIdServerCookies object instance as the owner of the collection item.

Add is called from TIdHTTPServer when cookies are created to represent the Session used for an HTTP client connection, or when Cookies are received in the request for an executing peer thread.