Home

Monday, December 26, 2011

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

rathoddhirendra.blogspot.com-Google pagerank and Worth