Tuesday, June 7, 2011

How to destroy or run a cookie

Tricks of the web developing

Here is the instructions:

 


<? php
/ / In this example, the cookie is called "cookie_name"
setcookie ("
cookie_name", "", "0");
?>

To run a cookie you must do the following
<? php
setcookie('cookie_name', 'blablabla', time() + 3600);
?>