I'd like to make this script set cookies for the domain. Right now if it sets cookies for, let's say, www.mysite.com/page_1/something.html those cookies are going to be useless for www.mysite.com/page_2/something.html

Is there a way to to make this script simply set cookies for www.mysite.com regardless of what goes after the / forward?

... Code (markup):

How do I set cookies for the domain?