PHP authentication with multiple domains and subdomains

后端 未结 3 1825
有刺的猬
有刺的猬 2020-11-30 11:34

I have one main domain: main.com, subdomains: test1.main.com, test2.main.com and other domains one.com, two.com

3条回答
  •  余生分开走
    2020-11-30 12:19

    But if user reach domains one.com directly, than one.com can't know if user had login by the right answer mentioned above, seems like must use some extra js, it's jsonP! we let account.main.com/userLoginStat.php?callback=loginThisDomain to check if user had login main.com, if so, the js callback function loginThisDomain do some thing to autologin user to one.com.

提交回复
热议问题