Web.HTTPApp.TCookieCollection.Add
Delphi
function Add: TCookie;
C++
HIDESBASE TCookie* __fastcall Add();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TCookieCollection |
Description
Creates a new TCookie object and adds it to the end of the Items property array.
Call Add to add a new Cookie header to the set of cookie headers sent with the Web response message. Use Add when adding a Cookie header whose fields will be set at a later time. If the values of the TCookie properties are known at the time of creation, use the SetCookieField method of the Web response object instead.