Two level domain name same different background, how to prevent user name as the result of permissions session conflict

Source: Internet
Author: User
For example, the address of two websites is
Teacher.aaa.com
Father.aaa.com

The user name of a user in both backgrounds is Peter
RBAC permissions used by
Saved with the session
How to do a browser two sites are able to log in simultaneously session and permissions do not conflict

Reply content:

For example, the address of two websites is
Teacher.aaa.com
Father.aaa.com

The user name of a user in both backgrounds is Peter
RBAC permissions used by
Saved with the session
How to do a browser two sites are able to log in simultaneously session and permissions do not conflict

The two sites session cookie domain can be set up, the scope of the corresponding site (including two-level domain name), will session not conflict with each other.

Set the domain entry for the cookie

Different domains, the session will not be the same, so there will be no conflict.
The permissions of the account are controlled by the program, not session,session just to help you determine "who he is".

  • 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.