php Form.net

Free PHP forms, scripts, resources and tutorials.

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);
?>

PHP Cookies - Delete Cookies

Example:
<?php
setcookie ("cookieuser", "", time() - 3600);
setcookie ("cookiepass", "", time() - 3600);
print_r ($_COOKIE);
?>

Comments


Add a Comment

Name:


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

CopyRight phpForm.net