A site has a primary domain name, multiple subdomains, a common login, and later found
The primary domain name can be logged in, sub-domain login, the primary domain name after login in the subdomain is still not logged in, and in the sub-domain Click Login will jump back to the subdomain home page, not to go to login pages
How to solve it?
With theLaravel 5.2.*
Such as: Primary domain nameqiyue.io
Sub domainblog.qiyue.io
Reply content:
A site has a primary domain name, multiple subdomains, a common login, and later found
The primary domain name can be logged in, sub-domain login, the primary domain name after login in the subdomain is still not logged in, and in the sub-domain Click Login will jump back to the subdomain home page, not to go to login pages
How to solve it?
With theLaravel 5.2.*
Such as: Primary domain nameqiyue.io
Sub domainblog.qiyue.io
Session synchronization:
The following three steps are required
Redis Storage Session
Session cookie domain name changed to
Secret of two items changed to consistent