Re: Re: Problem deleting a cookie...
| From: | Dave O | Date: | Tue, 24 Feb 2004 00:10:25 +0000 |
| Subject: | Re: Re: Problem deleting a cookie... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178612@lists.php.net to get a copy of this message | ||
Forgot to -cc the list.
André Cerqueira wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's what I use to set the cookie. $value=(time() + 9000) . ":$uid:$username:$gid:$fullname"; SetCookie("Trackookie", $value, 0, "", "server.mssystems.com" ); Here's what I use to delete the cookie. SetCookie("Trackookie", "", time()-3600, "", "support.mssystems.com"); the domain is different one of them uses one domain for creating and deleting, the other uses the other domain, right? check that... <snip>Sorry, didn't proofread my initial message. I wish it were that easy as what you pointed out. Here are the actual commands used in the script Server 1 (support.mssystems.com) -------------------------------- Set cookie: $value=(time() + 9000) . ":$uid:$username:$gid:$fullname"; SetCookie("Trackookie", $value, 0, "", "support.mssystems.com" ); Delete cookie: SetCookie("Trackookie", "", time()-3600, "", "support.mssystems.com" ); Server 2 (token.mssystems.com) -------------------------------- Set cookie: $value=(time() + 9000) . ":$uid:$username:$gid:$fullname"; SetCookie("Trackookie", $value, 0, "", "token.mssystems.com" ); Delete cookie: SetCookie("Trackookie", "", time()-3600, "", "token.mssystems.com" ); As I stated in the initial post, the only difference between the two servers is the apache version (1.3.29 vs 2.0.48). These are virtual hosts and the php directives are the same for both servers. This just seems very puzzling. do