help: setcookie question
| From: | Frank Ramsay | Date: | Tue, 12 Mar 2002 21:25:34 +0000 |
| Subject: | help: setcookie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88248@lists.php.net to get a copy of this message | ||
pretty please?
I have a situation where I have to have a cookie that is set
by one apache server and read by another. They are on the
same domain, but different ports. To write this I set
up two webserver one on port 81 and one on 90, the port 81 server
calles setcookie, but in the DOMAIN argument I specified the port
(i.e. "192.168.1.102:90"). but this doesn't work :(
In the cookies file it shows up as "192.168.1.102:81"
Any ideas what I'm doing wrong? Here is the PHP call to setcookie:
setcookie("SITE_RULES[PERM]" , "YES", "time()+2700" ,
"/$path" ,
"$URL:$port");
$path is the path without the leading /
$URL is the url without the port
$port is the target port
Any help would be really appreciated.
-fjr