Common Technical Scenarios
1. How to achieve single sign-on
1.1 Overview
The English name of single sign-on is: Single Sign On ( SSO for short ), you only need to log in once, you can access all trusted application systems
In the past , we generally had a single system , and all functions were on the same system.
Session sharing of single system
-
Login : save user information in the Session object
-
- If it can be found in the Session object, it means you have logged in
- If it cannot be found in the Session object, it means that you are not logged in (or have logged out)
-
Logout (Logout) : Delete the user's information from the Session
Later, in order to make reasonable use of resources and reduce coupling , we split the single system into multiple subsystems.
There may be multiple Tomcats in multiple systems, and the Session depends on the To of the current system.