February 24th, 2000, 01:09 PM
I have a script runs in the browser & references the users cookie in the process. I want to run this script server-side but need to pass the cookie to make it work properly. I found this script in this forum;
fputs($fp,"GET $page?$params HTTP/1.0n");
fputs($fp,"Authorization: Basic $codenn");
and it does http authentication. I'm hoping that a similar method can be used to pass the cookie.
Any help would be appreciated.
February 25th, 2000, 10:46 AM
I don't think I explained myself clearly in the last post. The PHP script I created runs a 2nd .Fgi script. The .Fgi script is designed to run in the browser & set the cookie. I want to run the .Fgi script from the PHP script on a server. So what I'm looking for is a way to "hand off" an existing cookie, acting as a kind of middle man, not create a new one.
Any ideas would be helpful.