JDev

phpMay 14, 2006 8:47 pm

The simple setcookie("CookieName", "", time()-3600) function did not work for me. Only when I added the path "/" as a fourth argument, the cookie was deleted from the system.

 

php 5:14 pm

Had a problem with php session variables on Windows XP. The session variable declared with $_SESSION did not carry over from one page to another. As it turned out, the culprit was a line in the  php.ini  file:

session.cookie_path = \

I changed it back to the original  forward slash

session.cookie_path = /

 and it worked.