diff --git a/reference/http/functions/setcookie.xml b/reference/http/functions/setcookie.xml index bc37f1ca2b..3d583109a5 100644 --- a/reference/http/functions/setcookie.xml +++ b/reference/http/functions/setcookie.xml @@ -1,5 +1,5 @@ - + @@ -19,15 +19,15 @@ setcookie defines a cookie to be sent along - with the rest of the header information. Cookies must be sent - before any other headers are sent (this is a - restriction of cookies, not PHP). This requires you to place - calls to this function before any <html> or - <head> tags. If headers exist prior to - calling this function, setcookie will fail - and return &false;. If setcookie successfully - runs, it will return &true; This does not mean the user accepted - the cookie or not. + with the rest of the HTTP headers. Like other headers, cookies + must be sent before any output from your + script (this is a protocol restriction). This requires that you + place calls to this function prior to any output, including + <html> and <head> tags + as well as any whitespace. If output exists prior to calling this + function, setcookie will fail and return &false;. + If setcookie successfully runs, it will return + &true;. This does not indicate whether the user accepted the cookie. All the arguments except the name argument