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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.