Blakej wrote:We are trying to build a routine that will talk between ASP and PHP. We currently have a username and password in PHP that sends a request to ASP, ASP authenticates, sending a cookie back to PHP. It appears that PHP isn't accepting the cookie and consiquently behaves as a new client with a new session, causing the authentication to not work.
Any thoughts, or is there someone who understands PHP extremely well that would be willing to consult on this problem?
ASP and ASP.NET allow the developer to push several "Items" onto the same cookie and then add it to the response
ie.
cookie.Item(key1) = value1;
cookie.Item(key2) = value2;
cookie.Item(key3) = value3;
Response.Cookies.Add(cookie);
This will create one cookie with several ampersand-delimited name/value pairs
(key1=value1&key2=value2&key3=value3)
I don't know if this could be the same issue you're having, but I recently ran into this when integrating different platforms (in my case a Java servlet, which handles cookies the way php does).
Firefox has a great plugin called Web Developer which will show you all cookies that belong in the current domain of the page you're using. This might be of some help as well.