michaellunsford Posted July 29, 2006 Share Posted July 29, 2006 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? Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/ Share on other sites More sharing options...
pixy Posted July 29, 2006 Share Posted July 29, 2006 Sessions are stored on the server, so my guess is no. Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/#findComment-65598 Share on other sites More sharing options...
michaellunsford Posted July 29, 2006 Author Share Posted July 29, 2006 I should have mentioned that all of the sites in question are hosted on the same machine. Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/#findComment-65599 Share on other sites More sharing options...
DocSeuss Posted July 29, 2006 Share Posted July 29, 2006 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. Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/#findComment-65631 Share on other sites More sharing options...
ShogunWarrior Posted July 29, 2006 Share Posted July 29, 2006 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. Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/#findComment-65650 Share on other sites More sharing options...
michaellunsford Posted July 30, 2006 Author Share Posted July 30, 2006 hmmm. sounds like an experiment is in order. I'll report back. Link to comment https://forums.phpfreaks.com/topic/15967-login-to-one-website-from-another/#findComment-65660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.