delete cookies

Giganews Newsgroups
Subject: delete cookies
Posted by:  SW (s_tka…@infonet.by)
Date: Mon, 25 Oct 2004

Hi,
Does anybody know how to delete the cookie ?
I tried like this:

    ActNcook:=ARequestInfo.Cookies.Count;

    if ActNcook>0 then
    begin
      for ActLc:=0 to ActNcook-1 do
      begin
            if ARequestInfo.Cookies.Items[ActLc].CookieName='UIN' then
AresponseInfo.Cookies.Delete(ActLc);
      end;

Delphi pops up the exception 'List index out of bounds'.

Any clues?

Sergey

Replies