[phpOpenTracker-general] re: returing_visitor cookie problem

Peter Adams <[email protected]> Sun, 28 Nov 2004 17:52:09 -0800
Newsgroups gmane.comp.web.phpopentracker.general
Message-ID <[email protected]>
It turns out that a cookie is not set if you have your debug 
configuration set to "2" like I had.

The reason being that the debug routine makes a DB query and pushes its 
message to the browser thus ruining it for PHP's setcookie function 
which is called by the logging engine. The reason that I didn't see 
this at first is that the error is suppressed by an "@setcookie" call - 
causing it to fail silently.

One might want to note this in the docs or, better yet, setup a wiki so 
that I can make the note myself ;)

-P-