How to implement synchronous login between the discuz Portal and Forum

Source: Internet
Author: User


Alas, you can't survive.

Today, some friends in the group said that the portal has been logged on, and you have to log on to the forum again .. Swollen ..

Well, the portal domain name must be different from the Forum domain name. You cannot log on at the same time.

The second-level domain name is set ..

Many of my friends set the website portal domain name to www. Forum domain name to bbs.

Enter www. Enter the portal homepage and click "log on" to log on correctly.

After you click "Forum homepage", the user name you have logged on to will no longer be available. You need to log on again.

Swollen, depressed, speechless

Why? Cookie

How can this problem be solved?

Modify our configuration file

The method is as follows:

Modify

The code is as follows: Copy code

$ _ Config ['cookies'] ['cookiedomain '] = '';

Is

$ _ Config ['cookies'] ['cookiedomain '] ='. ***. com ';

To explain, ***. com is your domain name. After saving it, upload it and update the cache.

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.