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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.