Artık bir çerez silme kodunu hareketli sonra çalışır

0 Cevap php

I was using the code below to delete cookies and everything worked fine. A few days ago, I began hosting the code somewhere else and it will not longer delete the cookie.

Herhangi bir fikir?

if( $_COOKIE )
{
     foreach( $_COOKIE as $name => $value )
     {
          $params = session_get_cookie_params();

          unset($_COOKIE[$name]);
          setcookie($name, '', time()-43200, $params['path']);
          echo $name;
          echo '<br/>';
          echo $params['path'];
      }
}

0 Cevap