Answers

Question and Answer:

  Home  PHP

⟩ How to reset/destroy a cookie in PHP?

Reset a cookie by specifying expire time in the past:

Example: setcookie('Test',$i,time()-3600); // already expired time

Reset a cookie by specifying its name only

Example: setcookie('Test');

 150 views

More Questions for you: