The website B .xxx.com has a new project that requires a registration port and a logon port. How can we re-write the method and directly call the Controller Method of the main site a.xxx.com or something. The website B .xxx.com has a new project that requires a registration port and a logon port. How can we re-write the method and directly call the Controller Method of the main site a.xxx.com or something.
Reply content:
The website B .xxx.com has a new project that requires a registration port and a logon port. How can we re-write the method and directly call the Controller Method of the main site a.xxx.com or something.
If it is the same top-level domain name, you can use ajax to call it. After successful login, write the session and cookie and refresh the page. Note that the cookie Effective domain name corresponding to the session should be xxx.com
If the top-level domain name is different, refer to "Single Sign-On", you can use ucenter