Laravel multi-domain login problems such as qiyue. iome. qiyue. io

Source: Internet
Author: User
Tags subdomain subdomain name
A website has a primary domain name, multiple subdomain names, and one public logon. later, it was found that the primary domain name can be logged on, and the subdomain name cannot be logged on, after logging on to the primary domain name, you still haven't logged on to the subdomain name, and clicking log on to the subdomain name will jump back to the subdomain name home page. how can this problem be solved... A website has a primary domain name, multiple subdomains, and a public login.

The primary domain name can be logged on, and the subdomain name cannot be logged on. after the primary domain name is logged on, the subdomain name is still not logged on, and clicking logon on the subdomain name will jump back to the subdomain name homepage, login Page not found

How can this problem be solved?

YesLaravel 5.2 .*

For example, primary domain nameQiyue. io
Subdomain nameBlog. qiyue. io

Reply content:

A website has a primary domain name, multiple subdomains, and a public login.

The primary domain name can be logged on, and the subdomain name cannot be logged on. after the primary domain name is logged on, the subdomain name is still not logged on, and clicking logon on the subdomain name will jump back to the subdomain name homepage, login Page not found

How can this problem be solved?

YesLaravel 5.2 .*

For example, primary domain nameQiyue. io
Subdomain nameBlog. qiyue. io

Session synchronization:
The following three steps are required:

  1. Redis memory session

  2. Change the cookie domain name of the session

  3. The secret of the two projects is changed to the same

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.