Broken Cookies
| From: | Robert Wray | Date: | Thu, 04 Jul 2002 14:44:15 +0000 |
| Subject: | Broken Cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105450@lists.php.net to get a copy of this message | ||
Hiyas :)
I'm having a problem with the code copied below not creating the cookies
that it should do;
setcookie("loggedInUID",$_POST['uname'],ms_cookie_time((time()+120)),'/',
$cookie_base);
setcookie($_POST['site_id'],$_POST['ucaps'],ms_cookie_time((time()+120)),'/'
, $cookie_base);
Basically those two lines are part of a file on server X that's called by a
file on server Y by a command similar to:
header("Location:
http://ServerX/connect.php?uname=username&site_id=siteid&ucaps=ucaps");
I'm at a complete loss as to why it's not creating the cookies properly. Any
suggestions?
Rob! x ;o)