Are these the same? That is to say that if in one php file I did a document.cookie = "foo=1", then opened another php file in another window, would $_COOKIE['foo'] be 1?
I am asking this because I am not seeing this.
More strange behavior on this:
In one PHP file I am doing
setcookie("wincount", "1", 0, "", "");
I eventually fire up another php file from the same window. In there I do:
It returns 0. However, I then do an alert(myGetCookieData('wincount')) in a function that is fired on the onload event and it returns 1.
That makes no sense.