Here's my two cents worth. If the cookie isn't changed in $_COOKIE, then the cookie hasn't changed.
The way I look at it, browsers store cookies in two places -- in memory and in the file. The "current" cookie set is stored in memory, and only those cookies that need to be stored between browser sessions are actually written to the file. This is how cookies that are supposed to expire at the end of a browser session are handled -- they simply are not written to the file.
From all this, it follows logically that if the browser is working from memory, the only time it would read the cookie file is the first time during a session that it goes to a site. All the rest of the time, it ignores the cookie store.
But you can test this:[ol][li]Go to a PHP script that sets a cookie, then to another PHP script that shows all cookies to verify the cookie was set.[/li][li]Shut down the browser[/li][li]Manipulate the browser's cookie store with your program[/li][li]Restart the browser and point it at the PHP script that shows cookies[/li][/ol]
If the cookies now change, my hypothesis above about browser cookie stores is correct and you'll have to do whatever it is you're trying to do another way, perhaps setting a cookie through a programmatically-created JavaScript file. But that is a question for another forum.
But you're manipulating a browser. That would be, in my opinion, a question for a forum on browser issues.
Want the best answers?
Ask the best questions!
TANSTAAFL!!