Saturday, May 16, 2009

How to reset/destroy a cookie

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

No comments:

Post a Comment