News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

How to Delete a Cookie in PHP

Started by sajiv, Sep 03, 2008, 07:14 PM

Previous topic - Next topic

sajiv


How to Delete a Cookie?
When deleting a cookie you should assure that the expiration date is in the past.

Example
Code:
<?php
// set the expiration date to one hour agosetcookie("user", "", time()-3600);
?>


:acumen