Basic PHP Programming Question:
How to reset/destroy a cookie in PHP?

Answer:
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');
Example: setcookie('Test',$i,time()-3600); // already expired time
Reset a cookie by specifying its name only
Example: setcookie('Test');
Previous Question | Next Question |
How to set cookies in PHP? | WHAT TYPES OF IMAGES THAT PHP SUPPORTS? |