Twitter OAuth Problem -


I'm trying to use Twitter AUTH to log in.

index.php

   GetRequestToken ('http://bakasura.in/twitter/twitter_oauth.php' will be redirected to); // session saving $ _SESSION ['oauth_token'] = $ request_token ['oauth_token']; $ _SESSION ['oauth_token_secret'] = $ request_token ['oauth_token_secret']; // If everything gets okay .. If ($ twitteroauth-> http_code == 200) generate the // // url = $ twitteroauth- & gt; GetAuthorizeURL redirect ($ request_token ['oauth_token']); Header ('location:'. $ Url); } Else {// This is a bad idea to kill the script, but we have come to know why there is an error ('something went wrong.'); }? & Gt;   

When I load the page, I am taken to the authorization page, when I grant it, it takes me back

    

And it says "Not authorized"

You can try it here

You did not start your session in the second session unless you call session_start (), your session variables are not available

Some PHP setups Has configured its php.ini to automatically restart our session, but when I look at your server setup, I see you on your second page Award would not send a cookie header to PHP session, so I'm pretty sure that your session does not start on the second page ...

Comments