To ensure that any old cookies issued against other paths are
removed we make sure to do a removeCookie call first without a
path being specified so that any cookie for the current page is
removed before we add a new one against the root.
Fixes #652
map.getLayersCode(),
map._object);
- $.cookie("_osm_location", cookieContent(map), { expires: expiry });
+ $.removeCookie("_osm_location");
+ $.cookie("_osm_location", cookieContent(map), { expires: expiry, path: "/" });
});
if ($.cookie('_osm_welcome') == 'hide') {