Im trying to make a cookie that I can use across one domain on different pages.
Lets say my domain is example.dev
var expiremilliseconds = 86400000; var currdate = new Date(); var expirationdate = new Date(currdate.getTime() + expiremilliseconds); document.cookie = "somecookie=true;domain=.example.dev;path=/;expires=" + expirationdate.toGMTString();
Thing is, I browse around my site and the cookie has disappeared and I cant use it on other pages. Why?