Содержание

SetCookies

Sets the specified cookie to profile.

Syntax

procedure SetCookies(aURL: string; aCookies: TCSCookies);

Parameters

Examples

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