I must shamefacedly confess to bad programming practice, as I have one page write a cookie and the form handler (a separate PHP file) then reads that cookie. Don't ask me why I am doing this (well, you really should, to expose me for the hack that I am… maybe I will learn something here.
var exdate=new Date();
//var sNewVal = value.replace(/ /g,"+");
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : "; expires="+exdate.toGMTString()) +
"; path=/; domain=worldbento.com";
Should path be "/" or something else?
Any ideas appreciated, folks. I am real excited about Linode, but just want my site to migrate seamlessly.
Checking the page source directly, I find this snippet here:
Basically, it's setting the cookie's domain to "indianbento.com", rather than "worldbento.com". I tried this in Opera, but I'd assume this happens in other browsers as well.
This is why I was asking why you couldn't just remove the domain parameter for the cookie, allowing the browser to handle this part by itself (not setting the domain would just make it valid for the current domain of the web page's URL).
Thank you very much!