A website has multiple backgrounds. how can we make them irrelevant? -Php Tutorial

Source: Internet
Author: User
A website has multiple backgrounds. how can we make them irrelevant? A website has multiple backgrounds A, B, and C. Now I have logged on to A, so the Session has been generated. when I enter B or C, I do not need to log on, how can we separate them so that B or C can be accessed only after logging on to A, instead of automatically logging on to B and C after logging on to.
How can this problem be achieved?


Reply to discussion (solution)

Many people want to integrate this login. you have to do the opposite.

If the domain name is different
Try to specify the domain of the cookie

If the domain name is the same, add a session prefix to each page.

Does A, B, and C have different domain names?

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.