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.


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

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


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 (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to