There are two websites need to do unified login (user center), how to achieve?

at first, there was a forum website, but later, when users got up, they wanted to be an e-commerce station, using different domain names, deployed on two servers respectively, and directly using the original user data. Now I hope that the two websites share a user center (done separately), and need to achieve single login and unified logout. Is there any mature scheme that can be used for reference, or ask the seniors to give ideas for implementation?

Jul.04,2022

means that user management is independent to do a user service. In this case, all you need to do on single sign-on is to verify whether the token is invalid and delete the corresponding token when you exit.


do you mean CAS (Central Authentication Service)?
CAS server is the user center. Each user / site uses a ST as a ticket, each user uses a TGT as a CAS login ticket, and CAS distributes the ST of each site.
this is a very mature solution. Open source framework can refer to

I have written an article on single sign-on before. Please advise:
https://my.oschina.net/agui19...

  • How to design the user information in the design of mysql database?

    how to design the daily database user information section. suppose the structure is as follows: CREATE TABLE users( `id` INT(11) PRIMARY KEY AUTO_INCREMENT, `nickname` char(20) COMMENT , `age` INT(4) COMMENT , `phone` char(11)...

    Mar.21,2021
  • Php ternary operator expression help

    problem description A judgment about the data removes the value from the array if it is empty, and passes the MD5 encrypted character value to the value if it is not empty. for example, an array of $data has $data [ pass ]. If $data [ pass ] is...

    Mar.29,2021
  • How to better design datasheets?

    problem description here are two data tables: order,user. Table relationship order.user_id Association user.id . Design a scene: in the background management, we need to search for orders, such as searching according to time and user name. ...

    Jul.28,2021
  • Php modifies the system time does not work

    now you need to modify the operating system time with PHP. The system is currently centos . my code <?php $cmd = "date -s 20181123 08:00:00 "; $cmd = "timedatectl set-time 2018-11-23 08:00:00"; $cmd = "reboot"; ...

    Jan.17,2022
Menu