Autolog from site to another

I have two php applications: one on example.com and one on example.org. Both applications are indispensable, which means that when the user uses the example.com application, he will use example.org too, because part of the application is on example.com and the other part on example.org. But there's a problem. When a user uses example.com and needs the function example.org, he goes to example.org by clicking the example.com button (and vice versa), but he needs to log in again (which is the problem).

How to autostart a user on example.org when he goes to example.org with example.com (usernames and passwords are the same for the user in both domains).

I want to be very safe.

Thank you very much!

+4
source share
2 answers

You need to transfer the session from one site to another site at the URL, and also transfer the md5 encrypted password using salt, and on the other site make the same mechanism for decryption and match this encrypted password with the one you get from the URL.

+2
source

There are several ways to do this. One of the ways is to send the user credentials (encrypted) to another site , and using the http module at the destination, try to enter the application, but this is not safe.

WIF (Windows Identity Foundation), SSO (Single Sign one and Single sing out ). WIF SDK , , IdP (Identity Provider).

cookie

​​, cookie. , , (, -). , , , (, "" GMail). : , cookie . . , , .

+1

All Articles