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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.