This article will introduce the solution to the IE7 iframe session loss problem in PHP at home. Students who have encountered such problems can refer to it for reference
Assuming that the iframe method is used, you are likely to encounter such a problem. And this problem only exists in the IE7 browser. I have tested it in firefox, IE6 and chrome and there is no problem
Before running session_start, add the following sentence to the program (taking PHP language as an example), which roughly declares the security level to the browser, so that there will be no problem when the iframe subpage creates a session:
The code is as follows
|
Copy code
|
||||
header(’P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"'); |
http: //www.bkjia.com/PHPjc/632108.html