Background: Single sign-on (SSO) allows a user to log in to multiple applications On the same account platform once to access all trusted applications. For example, Baidu Tieba and Baidu Map are two different application systems of Baidu Inc. If a user logs in to Baidu Tieba and does not need to log in to Baidu Map again, it means that the single sign-on between Baidu Tieba and Baidu Map is realized.

The essence of single sign-on is to share login state across multiple applications. If the user’s login status is recorded in the Session, to realize the shared login status, the Session must be shared first. For example, the Session can be serialized into Redis, so that multiple application systems can share the same Redis and directly read the Redis to obtain the Session.

directory

 

Implementation method 1: parent domain Cookie