Page 1 of 1

Sending Value via XMLHttpRequest object's setRequestHeader

Posted: Wed Oct 25, 2006 8:39 am
by anjanesh
Hi

I got a XMLHttpRequest object callde req.
I want to send one cookie (name, value) pair via the req's header to be interpreted as ($_COOKIE['Somename'], Somevalue) on the server.
req.setRequestHeader( "Set-Cookie", "Somename=Somevalue;") obviously wont work since Set-Cookie is meant for the client side.

Is this possible ?

Thanks