What is the solution for SSO (single sign-on) in PHP?

Source: Internet
Author: User
How can I solve the SSO problem in PHP ??? Single sign-on, such as www.aaa.com and www.bbb.com. to achieve aaa login, the bbb website can also log on to the website to view a lot of information over the past two days. Basically, the user verification center is used to set up ticket, I implemented it. through the P3P cross-site consultation on the PHP SSO (single sign-on) solution ???
Single sign-on, such as www.aaa.com and www.bbb.com. after aaa logon, the bbb website must also be logged on.
I checked a lot of information on the Internet over the past two days.
Basically, the user verification center is used to set up ticket. I implemented the cross-site COOKIE transfer through P3P. but how can I verify the validity of this cookie? Php sso single sign-on
------ Solution --------------------
When you log on to www.aaa.com, set a token to cookie in the verification center and save the token.
Access the verification center with a token when entering www.bbb.com, and compare it with the saved token
------ Solution --------------------
You can try iframe for cross-origin communication. This seems to be the solution now!

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


Haha, to score ..
------ Solution --------------------
Reference:
How can I encrypt tokens in cookies? Is this encryption irreversible? Just compare with the verification center?


You can use a private key to create a token.

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.