Posting within PHP and receiving only cookie
Posted
by faya
on Stack Overflow
See other posts from Stack Overflow
or by faya
Published on 2010-05-21T17:39:53Z
Indexed on
2010/05/21
17:50 UTC
Read the original article
Hit count: 242
Hello
I have a question. It might be sound ridiculous, but let me explain what I want to accomplish. Right now I try to embed open source forum to by site and I want to leave forum and my site databases split. When my site users are logging in I want them also automatically be logged in to the forum system. For that I want to login within my PHP code after receiving username and password in post, but I don't know how I can get only cookies in response. I have found out that I can use curl_init(), curl_exec(), curl_close() functionality, but response from curl_exec returns whole response(page content, cookies, headers). Is there a way to receive only cookies?
P.S. - If my design is totally wrong please give an advise how I can embed this functionality! I would be very thankful!
© Stack Overflow or respective owner