search

Home  >  Q&A  >  body text

javascript - How to stay logged in when system B is opened in system A?

Two business systems are deployed internally. For example, system a is deployed at 10.10.10.10:8088/index.html, system b is deployed at 20.20.20.20:8088/index.html, the user logs in on a, and the subpage of system a There is a link that can open system b in a new tab. How to ensure that it is still logged in after opening it? What needs to be done on the front end? How to do it?

滿天的星座滿天的星座2786 days ago739

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:21:37

    Single sign-on
    General idea: A and B share a user status information database. After logging in through system A, a token is generated and saved in the public library. When opening system B, bring this token (check whether you have logged in based on the token).
    As for how to pass this token: put it in a cookie, or display it after the URL and pass it.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-19 10:21:37

    1. a system jumps to single sign-on system b when linking; Keyword: single sign-on;

    2. Users of systems a and b use the same platform to log in; Keyword: oauth 2.0

    reply
    0
  • Cancelreply