Shamblett,
I alluded to one security aspect of it above. If multiple people have the same name attached then a website can have access to all of the cookies on your computer with that name when it accesses its own with the same name. $_SESSION information can then be sent to the other site and "log" you in without your being there, if the cookie also has the url attached.
I could have been a little clearer in my previous post, but deliberately didn’t. Those of us who run a local dns server would be using the resolv.conf to point to it. In bind (or what ever you are using) you would include an entry to the localhost webserver. If you name the network .lan or .home or .yourname or .whatever you could then have a revo.lan as a name (or whatever you want).
The /etc/hosts file is the place for local resolution, but in some distros this file is overwritten on a network restart or system startup.
I did not go into more detail because I believe it is out of the context of this topic and even this forum to digress to much into the setting up or or the various considerations of these systems.
As most people run modX content on webservers with fully qualified domains this is a non-issue, though I believe the installer may need to be patched to pull the actual domain and insert it automatically into the table, as firefox and other browsers require two dots in the domain name to accept the cookie.
If people really want to play, they can get a dynamic dns address pointed to your router and redirect ports 80 and 443 to their local server. In their /etc/hosts file they can simply take the dyndns domain and point it to the local ip address, or even better setup the local name server to redirect that dyndns name to the local network ip and automatically publish that name to the local network when they access that dhcp system -- which of course is feeding off the localized dns server as the authenticated master.
To directly answer your question:
http://us2.php.net/function.setcookie PHP.net. This is a very old issue -- PHP 4+ is directly mentioned in the article, though I found IIS forums from 2002 also discussing this.
I hope this finally answers your question.