Basic PHP Programming Question:

How to reset/destroy a cookie in PHP?

PHP Interview Question
PHP Interview Question

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');


Previous QuestionNext Question
How to set cookies in PHP?WHAT TYPES OF IMAGES THAT PHP SUPPORTS?