PHP to Delete a Cookie


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. // set the expiration date to one hour ago
  3. setcookie ("TestCookie", "", time() - 3600);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.