Advertisement
Gov_777

куки

Apr 25th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.56 KB | None | 0 0
  1. //объявлена в модуле с браузером
  2. procedure TfHWMBrowser.SetCookies(Cookies: TIdCookieManager);
  3. var
  4.   fCookies: TIdCookieList;
  5.   i: Integer;
  6. begin
  7.   fCookies := Cookies.CookieCollection.LockCookieList(caRead);
  8.   try
  9.     for i := 0 to Pred(fCookies.Count) do
  10.       with fCookies[i] do
  11.         HWMCookieManager.SetCookie('http://www.heroeswm.ru/*', CookieName, Value, Domain,
  12.           Path, Secure, HttpOnly, IsExpired, CreatedAt, LastAccessed, Expires, nil);
  13.   finally
  14.     Cookies.CookieCollection.UnlockCookieList(caRead);
  15.   end;
  16. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement