Search Webmaster Help and Solution

replacing cookie in http header

I have an ajax app and a proxy php file. I need to create and insert a cookie at the proxy level before the request is sent on to the database server.

AJAX(create and send parameters) > proxy.php(create cookie for authentication) > Database(on another server)

Database > proxy > AJAX = XML

My current implementation makes 2 call to 2 seperate php files. first call creates and returns cookie to browser. second call sends parameter (including cookie) that request certain XML from another server.

Is it possible to do this with a single request to one php file that creates the cookie and includes it in the header of the request before send the parameters onto the database server? I have an ajax app and a proxy php file. I need to create and insert a cookie at the proxy level before the request is sent on to the database server.

AJAX(create and send parameters) > proxy.php(create cookie for authentication) > Database(on another server)

Database > proxy > AJAX = XML

My current implementation makes 2 call to 2 seperate php files. first call creates and returns cookie to browser. second call sends parameter (including cookie) that request certain XML from another server.

Is it possible to do this with a single request to one php file that creates the cookie and includes it in the header of the request before send the parameters onto the database server?

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).