Jump to content

Cross site user DB system?


virtuexru

Recommended Posts

OK, so I have two domains. I want to 'inter-link' the users somehow. I'm using MySQL/PHP.

 

Basically this is how it should work:

 

1. User logins in on Domain1.com

2. User moves to Domain2.com and is still logged in

 

My 'check to see if user logged in' script is working through Cookies/Session. Is this possible or am I a complete moron? What are some options.

Link to comment
https://forums.phpfreaks.com/topic/71092-cross-site-user-db-system/
Share on other sites

Arn't cookies domain specific? So unless the address's are the same you can't use the single cookie method. So you either need to put PHPSESSID in each url (not recommended), or as a page is called it set's / check's the cookie for it's site, and also tells the page to include a section from the other site, which also set's / checks a cookie. This is a bit like when you go to a site and you get adverts and cookies from other sites, and are tracked.

Archived

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

×
×
  • Create New...

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.