IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine if I have logged on to the logon page?-php Tutorial

Source: Internet
Author: User
IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine whether I have logged on to the login page and asked this question before? However, I think the answer is incomplete, after you log on to a TAB in hotmail, the new tab is displayed on the logon page. How to implement it? IE and other multi-TAB browsers log on to one TAB and then open a new TAB to open the same Web site. how can I determine if I have logged on to the login page?
I have asked this question before, but I think the answer is incomplete. it seems that hotmail is logged on to a TAB. after opening the new tab, it will jump to the logon page. How to implement it?

Share:


------ Solution --------------------
The new tab refreshes the page.
If the session and other logon information have been recorded, do you enter the logon page after refreshing the page,
------ Solution --------------------
I don't know what problems you have encountered. at least you have not clearly described them.
You can test it like this.
Setcookie. php
 Session_start ();
Setcookie ('name', 'My ');
Getcookie. php
 Session_start ();
Print_r ($ _ COOKIE );
Echo session_id ();

First, execute setcookie. php in the first TAB.
Then execute getcookie. php in the second TAB.
Let's take a look at all the results.

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.