When I do an fsockopen and send some headers to a page, the two cookies I send are compiled into one. (see examples below)
Is it wrong to set the two cookies in this way?
Headers:
GET /pagetarget.php HTTP/1.1
Host: localhost
User-agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Cookie: TestCookie=michelle
Cookie: TestCookie2=de+beer
Connection: Close
// This generates a faulty array:
print_r($_COOKIE)
Array
(
[TestCookie] => michelle, TestCookie2=de+beer
)
// I want the array to be like this:
print_r($_COOKIE)
Array
(
[TestCookie] => michelle
[TestCookie2] => de+beer
)
Any thoughts?
// Michelle