[PHP] Re: IE cookies don't expire! From: Adam (adam <email protected>)
Date: 07/10/01

define a variable to be set on refresh along with the URL that erases the
cookie by setting it's expire to time() minus a month or so. If you don't
want the url varibale passer to show then have it set the cookie then to a
header redirect to $PHP_SELF.

<?php

if ($refresh) {
    setcookie('cookiename', '',(time()-259200000),'/',$HTTP_HOST,0);
}

if ($refresh) {
    header("location:" . $PHP_SELF);
    exit;
}

?>

use that in the beginning of your page and be sure to add a ?refresh= to
your refreshing url.

hope this helps with what i know about the subject.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>