Forum Moderators: coopster
I am trying to fetch data off of a password protected website. The user will enter his/her username and password on my site, and then PHP will enter it on the remote site, performing a "virtual login".
Now, after it is logged in the remote script generates a session key in the URL. As long as I can extract the key in MY script, then I can have access to the data I need.
This is all legit, I am not stealing info (remember the user is providing his/her password to the REMOTE site).
Any idea how I could design a function that simply logs in and returns the session key?
Someone point my in the right direction!
Thanks!
I would guess after processing the login the remote site would redirect the user to the member pages with the session id. You would have to process the output of fsockopen (which would probably be the redirect) to try and get the session id.
Hope this helps
[php.net...]