session in multiple subdomains

时间:2017-08-04 11:58:32

标签: php session login

I have a multiple domains like site.com and web.site.com.

I have already login system, but if i login in site.com, web.site.com don't know the login, because I'm using session_start();. So, is there a way to "choose" or something else to do to all my subdomains to know that user is loged in?
Like google and youtube....

I tried to do it like browser automatically post the user sp. ID but i't doesn't work for sub-domains if you go back.

Thanks.

0 个答案:

没有答案