====== setCookies ======
Sets the specified cookie to [[en:api:profiles|profile]].
===== Syntax =====
setCookies = function(aURL, aCookies);
==== Parameters ====
* **//aURL//**
* //functions:// page, on behalf of which the record takes the place
* **//aCookies//**
* //functions:// an array of cookies to record into profile
===== Examples =====
-var cookies = [];
var cookie = {};
cookie.name = 'testcookie';
cookie.value = 'testvalue';
cookie.domain = 'mysite.ru';
cookie.path = '/';
cookie.securre = false;
cookie.hasExpires = false;
cookie.creation = 0;
cookie.lastAccess = 0;
cookie.expires = 0;
cookies.push(cookie);
setCookies('http://mysite.com/', cookies);