Your Ad Here

Saturday, November 7, 2009

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

No comments:

Post a Comment

Your Ad Here