Содержание

setCookies

Sets the specified cookie to profile.

Syntax

setCookies = function(aURL, aCookies);

Parameters

Examples

  1. 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);