We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

rengber on 05/21/08


Tagged

php cookie ServerSide


Versions (?)


PHP to Delete a Cookie


Published in: PHP 


URL: http://nz.php.net/manual/en/function.setcookie.php

  1. <?php
  2. // set the expiration date to one hour ago
  3. setcookie ("TestCookie", "", time() - 3600);

Report this snippet 

You need to login to post a comment.