Bing Map - Need details about bing.com cookies

SorabhJain-0549 30 Reputation points
2023-01-27T11:52:06.4266667+00:00

Hi Team,

We are using bing map in one of our application where we are having below subset of code present where we are passing keyBing and loading the map control.

function GetMap() {
    try {
        searchManager = null;
        map = new Microsoft.Maps.Map("#mapDiv", {
            credentials: keyBing,
            zoom: 3,
            center: new Microsoft.Maps.Location(40.347, -94.218),
            mapTypeId: Microsoft.Maps.MapTypeId.aerial
        });	
pinLayer = new Microsoft.Maps.Layer();
        map.layers.insert(pinLayer);        
        pinInfobox = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0), { visible: false, maxWidth: 270, maxHeight: 80 });
        pinInfobox.setMap(map);
    }
    catch (err) { }
}

At application runtime, we found that there are few cookies which was created by “bing.com”.

Could you please let us know if any of these cookies are strictly necessary for bing map to work or these cookies can be ignored/deleted?

Also please let us know possible ways to remove these cookies from our application runtime.

Name	Value	Domain
_SS	    SID=XXXXX	.bing.com
USRLOC	HS=X	.bing.com
SUID	M	.bing.com
SRCHUSR	DOB=XXXXXX	.bing.com
SRCHUID	V=X&GUID=XXXXXXXXXX&dmnchg=X	.bing.com
SRCHHPGUSR	SRCHLANG=XX	.bing.com
SRCHD	AF=XXXXXX	.bing.com
MUID	XXXXXXXX	.bing.com

Thanks & Regards

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
587 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 15,231 Reputation points Microsoft Employee
    2023-01-27T16:28:34.5966667+00:00

    Those cookies can be ignored/deleted. I believe they mostly come through as Bing Maps uses the same infrastructure as bing.com so that it can easily scale.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. SorabhJain-0549 30 Reputation points
    2023-01-31T09:11:20.68+00:00

    Thanks rbrundritt for your help, Actually we have done with the development and deployed till Production as well so we are avoiding to switch to Azure Maps.

    Thanks IoTGirl,
    Yes changing the URL from www.bing.com to sdk.virtualearth.net is working for us, after this, we are not getting bing.com cookies anymore.

    Thanks a lot for your help in this. :)

    1 person found this answer helpful.

  2. SorabhJain-0549 30 Reputation points
    2023-01-31T17:52:51.9466667+00:00

    Thanks a lot for the solution :)

    1 person found this answer helpful.