Jump to content


Photo

login to one website from another?


  • Please log in to reply
5 replies to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 29 July 2006 - 08:36 PM

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?

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 29 July 2006 - 08:41 PM

Sessions are stored on the server, so my guess is no.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 29 July 2006 - 08:42 PM

I should have mentioned that all of the sites in question are hosted on the same machine.

#4 DocSeuss

DocSeuss
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts
  • LocationTexas, USA

Posted 29 July 2006 - 10:31 PM

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.
"Unlimited budget? Great, for $5,000,0000 we will run your ad banner for one year"  ----Rasmus Lerdorf

#5 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 29 July 2006 - 11:53 PM

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.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#6 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 30 July 2006 - 01:03 AM

hmmm. sounds like an experiment is in order. I'll report back.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users