Re: Bug in TIdNetscapeCookie.Assign: should use Original CookieText

Giganews Newsgroups
Subject: Re: Bug in TIdNetscapeCookie.Assign: should use Original CookieText
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Thu, 10 Jan 2008

"Andreas Hesse" <…@ahsysteme.de> wrote in message
news:B44944833744E340…@ahsysteme.de...

>    CookieText := TIdCookieRFC2109(Source).FCookieText;

That is not a solution.  Changing the various properties of a cookie does
not update the FCookieText member, so you are potentially copying an
outdated value.  That is why the CookieText getter method is used instead -
to copy the current live values that actually apply to the cookie data.

Gambit

Replies

In response to

Bug in TIdNetscapeCookie.Assign: should use Original CookieText posted by Andreas Hesse on Thu, 10 Jan 2008