FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Deleting cookies
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Deleting cookies [message #169827 is a reply to message #169824] Mon, 27 September 2010 19:49 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/27/2010 2:48 PM, MikeB wrote:
> 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
>
>

Yes, other domains are setting cookies in your browser, also. This is
quite normal. Whether or not it is similar code is unknown (and
immaterial).

You can only access cookies from the domain for which the cookie is set.
You cannot access, delete or otherwise do anything to a cookie from
any other domain.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Route/Link to an action works with http, but NOT with httpS (SSL!)
Next Topic: Re: OT SSL Certificate
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 09:34:31 GMT 2024

Total time taken to generate the page: 0.10606 seconds