PHP Cookies - setcookie
Defines a cookie to be sent along with the rest of the HTTP headers.Example:
<?php
setcookie("cookieuser", "username", time()+3600);
setcookie("cookiepass", "password", time()+3600);
print_r ($_COOKIE);
?>
setcookie("cookieuser", "username", time()+3600);
setcookie("cookiepass", "password", time()+3600);
print_r ($_COOKIE);
?>
PHP Cookies - Delete Cookies
Example:<?php
setcookie ("cookieuser", "", time() - 3600);
setcookie ("cookiepass", "", time() - 3600);
print_r ($_COOKIE);
?>
setcookie ("cookieuser", "", time() - 3600);
setcookie ("cookiepass", "", time() - 3600);
print_r ($_COOKIE);
?>
Comments
Add a Comment
Sponsors
Google Meta Tags Generator Online
Create your own meta tags using our free code generator.
BuzzBoost Css Generator Online
Free Google BuzzBoost CSS Style Generator Online
Text Ads Generator
Create Your Own HTML Ad Using Our Free HTML Editor
Link Style Generator
Free CSS Style Sheet Generator for Links