Code Example
setcookie.php
setcookie.php
<?php
//setting a cookie
setcookie('user','Icon Training');
//retrieving a cookie
echo $_COOKIE['user'];
?>
deletecookie.php
<?php
//deleting the user cookie
setcookie('user','', time()-3600);
?>
No comments:
Post a Comment