Re: Deleting cookies [message #169824 is a reply to message #169821] |
Mon, 27 September 2010 18:48 |
MikeB
Messages: 65 Registered: September 2010
Karma:
|
Member |
|
|
Michael wrote:
>
> Have a look at the cookie contents with Firefox+Firebug+Firecookie or
> Chrome's Developer Tools.
OK, now this is perhaps not a PHP topic anymore, so if someone know the
right place for this, please tell me.
The cookie I'm struggling with is one named "mbcc" without, of course,
the quotes.
If I search for it in my list of cookies that Firefox has, I find 6
instances of this cookie, for the following sites:
answers.oreilly.com
forums.oreilly.com
localhost
mrsfields.com
oreilly.com
oreillynet.com
The content on each site is different, as is the expiry time.
In all instances the path is "/" (again, no quotes).
So why does the code in the OP not delete this cookie (at least for
localhost where I'm testing)?
If localhost updates the cookie, then the contents of this cookie is not
visible, for instance, on the mrsfields.com site, right?
So the assumption I can make here is that there is some common code
running on oreilly and mrsfields that uses a cookie named mbcc?
But what about localhost? How did the cookie come to be here?
I'm running EasyPHP with Apache, MySQL, and phpMyAdmin as stuff that has
localhost addresses and then of course my own testing.
But even before I created a cookie, this cookie exists. So now I assume
that one of those three products mentioned above creates and uses this
mbcc cookie? Is that right?
When I added the path argument to the setcookie call, the cookie did get
deleted, but now I don't understand, since / is the default path, it
*should* have been deleted on my first attempt?
PS. i did try and google that cookie name, but I got flooded by
irrelevant hits. :(
Confused,
Mike
|
|
|