Jump to content

Archived

This topic is now archived and is closed to further replies.

michaellunsford

login to one website from another?

Recommended Posts

I use sessions to track whos' logged in. I would like all clients to loginto my site and then be redirected to their site. Would a URL driven session work on another domain?

Share this post


Link to post
Share on other sites
Sessions are stored on the server, so my guess is no.

Share this post


Link to post
Share on other sites
By default PHP uses a cookie to store the PHPSESSID on the site visitors computer. If you do a web search for cross-domain cookies there are quite a few hits. I've never attempted this myself and thier was too much information for me to absorb and regergitate here.

Share this post


Link to post
Share on other sites
If you have/could have a single backend then you could have a custom session handler that would securely manage sessions across the two sites.
So, you would log on to your site and you would note that they are logged on in your database and then on the receiving website you check the referring URL for some kind of unique identifier and check that against the DB for authenticity.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.