Questions about this topic? Sign up to ask in the talk tab.

Cookies/Deleting A Cookie

From NetSec
Jump to: navigation, search

Direct HTTP programming

To delete a cookie, simply set it with an Expires date in the past and optionally with an empty value. It will be erased.

PHP

The same goes with PHP. Set the value of the cookie to false using setcookie

JavaScript

Set the cookie as described above with an empty value, and an expiry date in the past.