siddscool19 Posted October 27, 2008 Share Posted October 27, 2008 I want to store the cookies when I login using xmlhttprequest in phpbb3 forum so that i can use the cookies again..... Here are the codings I wrote but they are not working.... include('class.XMLHttpRequest.php'); $xml = new XMLHttpRequest(); $xml->open("POST","http://www.phpbb3.com/ucp.php?mode=login"); $xml->send("username=user&password=pass&redirect=&login=Login"); $cookie=$xml->getResponseHeader('Set-Cookie'); echo $cookie; $xml = new XMLHttpRequest(); $xml->open("POST","http://www.phpbb3.com/posting.php?mode=post&f=4"); $xml->setRequestHeader("Cookie",$cookie); $xml->send(null); echo $xml->responseText; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.