====== SetCookies ======
Sets the specified cookie to [[en:api:profiles|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:// [[en:wascript:pascal:types:tcscookies|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);