How can I enable the server to identify the client when implementing single-point logon?

Source: Internet
Author: User
I just found a problem with segmentfault. How does PHP implement the SESSION Sharing Solution for multiple servers? At that time, I only thought about sharing sessions and answered redis and other caches. Later, I suddenly thought about whether the subject's shared session was intended to achieve single-point login. I thought for a long time, and there was always a way to think about it... segmentfault I found a problem. How does PHP implement the SESSION Sharing Solution for multiple servers?

At that time, I only wanted to sharesessionThen I answeredredisCache.

Then I suddenly thought of sharing the subject.sessionIf you want to implement Single-point logon, you have to think about it for a long time. There is always a problem that is hard to solve.How to let the server identify which client is accessingWhether the client has accessed other sites.

Ask?

Thank you !!

Reply content:

Just refreshingsegmentfault I found a problem. How does PHP implement the SESSION Sharing Solution for multiple servers?

At that time, I only wanted to sharesessionThen I answeredredisCache.

Then I suddenly thought of sharing the subject.sessionIf you want to implement Single-point logon, you have to think about it for a long time. There is always a problem that is hard to solve.How to let the server identify which client is accessingWhether the client has accessed other sites.

Ask?

Thank you !!

You can't see this:
For example, taobao and tmall share a set of users.
After logging on to taobao, the user outputs a hidden image request to tmall on the page:

The token can be an encrypted user identity token. After tmall obtains the decryption, it logs on to the corresponding user and generates a cookie with the domain tmall. in the future, when users access tmall, they will be able to automatically identify the problem.

The service needs to identify that this is not what the service should do.

Generally is to use cookie to indicate the login ID of the client, but to consider the problem of cross-origin, specific reference my blog: http://blog.csdn.net/yunnysunny/article/details/7748106

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.