SetCookies
Sets the specified cookie to profile.
Syntax
procedure SetCookies(aURL: string; aCookies: TCSCookies);
Parameters
- aURL
- type: string
- functions: page, on behalf of which the record takes the place
- aCookies
- type: TCSCookies
- functions: an array of cookies to record into profile
Examples
var cookies: TCSCookies; var cookie: TCSCookie; cookie.name := 'testcookie'; cookie.value := 'testvalue'; cookie.domain := 'mysite.ru'; cookie.path := '/'; cookie.securre := false; cookie.hasExpires := false; cookie.creation := UTCDateTime; cookie.lastAccess := UTCDateTime; cookie.expires := 0; cookies.Add(cookie); SetCookies('http://mysite.com/', cookies);