Unset cookies php

前端 未结 8 1963
萌比男神i
萌比男神i 2021-01-04 09:28

I have this code that setted when login check is fine:

if((isset($_POST[\"remember_me\"]))&&($_POST[\"remember_me\"]==1))
    {
    setcookie(\'email         


        
8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 10:25

    Check in your browser for the directory where the cookie operates. And unset it by specify the path the cookie have. Like in the example if the cookie directory is /aforum/

    setcookie ("email","",time()-1,"/aforum/","http:// yourdomain.com");
    

提交回复
热议问题