If you set a cookie with either setcookie() or header(), you can immediately check to see whether the client accepted it.
False, you must wait until you receive another HTTP request to determine whether it includes the Cookie header.
Correct:
False, you must wait until you receive another HTTP request to determine whether it includes the Cookie header.
Answer D is correct.The response that contains the Set-Cookie header is not sent until PHP finishes executing, so you cannot test for acceptance prior to this. Answers A and B are incorrect because the answer is false.Answer C is incorrect because using setcookie() and header() both result in the same thing:A SetCookie header is included in the response.