Problems deleting cookies, won't unset

后端 未结 18 729
死守一世寂寞
死守一世寂寞 2020-12-09 15:33

I\'ve tried searching the php manual and internet on how to delete cookies and I\'ve tried it the exact same way they all say:

setcookie(\"name\", \'\', 1);
         


        
18条回答
  •  情深已故
    2020-12-09 16:15

    this is my experience with cookie that, the cookie may not be deleted from the client machine until the browser window (that we use to see existing cookie) is closed. So close that window and the try your code.

    • All params must be there while deleting that was there in creation
    • time must be in past
    • value must be '' (empty)
    • folder path must be same at of creation time

提交回复
热议问题