remove cookie php

How to remove cookie in php ?

You can remove php cookie two ways


1) Using unset() method 


2)Using  set cookie with past date time.


 but using both is preferable.






Here is example how to remove cookie in php  
setcookie('yourCookieName','',time()-3600,'/');
  unset($_COOKIE['yourCookieName']);

Buy Me a Beer-If you are like this post

 If you does not have paypal account create free account create account

No comments:

Post a Comment