Yo uso https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js para la función de cookie.¿La cookie jquery desaparece después de reiniciar el navegador?
Mi problema es que la cookie parece borrada después de reiniciar el navegador?
Éstos son el resumen en el código,
if ($.cookie("latlng")) {
myLatlng = $.cookie('latlng').split(',');
myLatlng = new google.maps.LatLng(myLatlng[0], myLatlng[1]);
} else {
$.cookie("latlng", "3.139, 101.686", { path: '/' });
myLatlng = new google.maps.LatLng(3.139, 101.686);
}
...
google.maps.event.addListener(marker1, 'dragend', function() {
var temp = marker1.getPosition().lat() + ',' + marker1.getPosition().lng()
$.cookie("latlng", temp, { path: '/' });
});
Hola Joe, gracias. – Peter