On one page I add items to a cookie using javascript, then on a separate page I read them. The problem I'm having is that I can read them, but when I try to change the value of the cookie that was set with javascript.
I read the cookie $_COOKIE['rentals'], but when I try and clear that cookie using $_COOKIE['rentals'] = ""; it doesn't do anything, because on the page I'm redirecting to I echo out the value of the cookie, and it's still there. Is there an issue with setting a cookie with javascript and reading it with PHP?





Bookmarks