Single sign-on solution
Single sign-on: Multiple systems, only need one login to access all systems, only need one logout, can log out of all systems. Scheme 1: Cookie + JSoup For the system that does not need to frequently verify whether the user is logged in (with low security requirements), cookies are stored by random numbers + server database tables to be more secure
Scheme 2: Session entry + Redis System that requires frequent verification of user login (relative security)
Session tracking technologies: 1.Cookie (through Request.getheader request.getcookies) 2.Session 3. Address rewrite 4. Hide the field
Where do sessions and cookies exist? The Session is stored on the server as a file (default file) or database. Cookie is a client technology, the program to each user’s data in the form of Cookie to the user’s browser. Note: Jsoup is a Java HTML parser that can directly parse a URL address, HTML text content.