I've been looking around the Internet but I cannot find anything related to my specific case online.
Let's assume there are 2 web applications. wa1
and wa2
. wa1
is written in PHP, located on domain1.com
and wa2
is written in Python, located on domain2.com
. There is a common database user_info
which stores user information such as usernames and passwords, and another database user_logged_in
which lists users and their sessions.
The user will authenticate through wa1
. How can I check if the user is authenticated in wa2
, if I cannot use remote MySQL to access the user_logged_in
database? Is it possible to set a cookie such that the site on domain2.com
can read the cookie set by domain1.com
?