Solution to IE7iframesession loss in php _ PHP Tutorial

Source: Internet
Author: User
Php IE7iframesession loss solution. This article will introduce the IE7iframesession loss solution in php at home. if you encounter such problems, you can refer to the reference hypothesis and adopt the iframe method, this article is likely to introduce the IE7 iframe session loss solution in php at home. if you encounter such problems, you can refer

If you use the iframe method, you may encounter this problem. This problem only exists in the IE 7 browser. I have no problems in tests in firefox, IE6, chrome, and other browsers.


Before running session_start, add the following sentence in the program (taking the php language as an example) to declare the security level to the browser, in this way, the iframe subpage will not be faulty when creating the session:

The code is as follows:

Header ('p3p: CP = "all adm dev PSAi com our OTRo stp ind onl "');

In addition, I also learned that if the second-level domain name contains underscores, such as your_domain.yourhost.com, problems may also occur during creation and transfer of sessions.

Iframe session loss solution. if you encounter such a problem, you can refer to the reference. if you use iframe, you may encounter this problem...

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.