Solutions to IE7 iframe session loss in php

Source: Internet
Author: User

This article introduces how to solve the problem of IE7 iframe session loss in php at home. If you encounter such problems, 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: Copy code

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.

 

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.