Date: 07/10/01
- Next message: Rouvas Stathis: "Re: AW: [PHP] Oracle question"
- Previous message: Adam: "[PHP] Re: PHP] Re: Store uploaded files in MySQL-BLOB"
- In reply to: Mark Ferraretto: "[PHP] IE cookies don't expire!"
- Next in thread: Jason Murray: "RE: [PHP] IE cookies don't expire!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Rouvas Stathis: "Re: AW: [PHP] Oracle question"
- Previous message: Adam: "[PHP] Re: PHP] Re: Store uploaded files in MySQL-BLOB"
- In reply to: Mark Ferraretto: "[PHP] IE cookies don't expire!"
- Next in thread: Jason Murray: "RE: [PHP] IE cookies don't expire!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

