How about the SSO (Single Sign-on) solution for PHP?

Source: Internet
Author: User
Ask PHP SSO (Single Sign-on) solution???
Single Sign-on, such as www.aaa.com,www.bbb.com two sites, to achieve AAA login, BBB website also implement login
These two days on the Internet to view a lot of information
Basically say using the user Authentication Center, set ticket, I implemented the next, through the P3P cross-site to pass the cookie, but how to verify the legality of this cookie? PHP SSO Single Sign-on


------Solution--------------------
Set a token to a cookie at www.aaa.com login and verify the center to save this token
Token Access Verification Center when entering www.bbb.com, compared to saved tokens
------Solution--------------------
IFRAME cross-domain communication you can try it, it seems to be the solution now!

http://www.alloyteam.com/2012/08/lightweight-solution-for-an-iframe-cross-domain-communication/
------Solution--------------------


Haha, for the score.
------Solution--------------------

References:
token encryption set to a cookie, how is token encrypted? Is this encryption non-reversible? Just a comparison with the verification center?


You customize a private key to create tokens with the private key
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.