Web site, the same browser can only log on to one user reason (cookie cannot cross browser)

Source: Internet
Author: User

My web site, like Http://ip/testsite/default.aspx,

When I'm on my machine, open with chrome, login with account user1,
Then when I open a new tab, and then open the Web site, then the display is still User1 landing.
I want to use another account User2 login in Chrome, then can only exit User1, and then use User2 landing.
In the same browser, only one account can log in at a time.

And at the same time, in different browsers, such as one is Chrome, one is Firefox, respectively, with User1 and User2 landing, this is feasible.

This is true because cookies do not cross browsers, and we save sessionid with cookies, and the server determines whether SessionID exists.

Chrome can be created with ctrl+shift+n and will not share cookies.

Web site, the same browser can only log on to one user reason (cookie cannot cross browser)

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.