Welcome to WebmasterWorld Guest from 126.96.36.199
Is this best done by having the link to my site be a post from the original site and passing a $_POST variable?
They want the login credentials to be transparent to the end user.
Or does anyone have examples of a better way to do this?
You could also write two functions, one on your client's site to encrypt the variables, and on on your site to decrypt the variables so you can read them. This way, you could use get and it would be pretty secure (someone could always study many links and eventually figure out your encryption algorithm).
I believe that session variables reside on a server, so their session variables wouldn't be visible to your site.
I would recommend their login process send a [changing] validation key along with an identifier (the user's signin name or an id number) to your site via curl [php.net]. Your site would store the info in a database table. Their link would send the key as part of the url (yoursite.com?link=2112), then you look it up to see if it's "registered" and who it is. If you also store the time that it was curled to you, you could implement a timeout - for example, if someone asks for a key that was indeed valid but was submitted 2+ hours ago, you delete it and make the visitor log in or send him/her back to the client's login page.
<added>Oops that was for ASP, I still believe you can find something for PHP as well.
[edited by: Habtom at 12:16 pm (utc) on June 7, 2007]