Topic: 2 Domains single login
Hi,
I have two domains.... example.com example2.com
I use one database for both. But have set it up so that one uses the other users table.
What is the best work around so that when they login example.com they will not have to login again at example2.com
Many thanks.
EDIT:
Ok I have a fix... but its probably not the best advised one.
Whats the security issue with the following?
Sending the cookie info from 1 domain to the other in the url. I send the user_id and the password_hash across via url and then it sets a new cookie with the information. Its not the cleanest route but having trouble coming up with something that can do the job.
Im guessing its not possible due to security implications.