How do you remove cookie in PHP?



  • Please do the same:

    $.removeCookie('lk', { path: '/' });
    

    and

    $.cookie('lk', '1', { expires: 7, path: '/' });
    location.replace("/my-works/"); 
    e.preventDefault();
    

    PHP only: Make this manipulation before the page is downloaded.



  • Before you're ready, you'll just do it.

    unset($_COOKIE['lk']);
    setcookie('lk', null, -1, '/');
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2