Summary of Solutions to IFRAME cookie problems in IE

Source: Internet
Author: User

1. The document. Cookie method is used to read cookies. It is no problem to access the page separately. However, if you access the page in IFRAME, the problem will occur and IE will not work.

<Http://shcom.test.com/test/vt.aspx? Id = 1 "frameborder =" no"Height = "200" width = "500" scrolling = "no" allowtransparency = "allowtransparency"> </IFRAME> 2 solution: Add a response in page_load. addheader ("p3p", "cp = CaO PSA our") 3 IE will consciously block the cookie in the IFRAME box, in IE6, cookies are divided into first party cookies and third party cookies, that is, first-party cookies and third-party cookies. The so-called third-party cookies refer to cookies nested on pages in frame or IFRAME. 4 more reference http://blog.csdn.net/hack8/article/details/4074359#1536434-tsina-1-20170-66a1f5d8f89e9ad52626f6f40fdeadaa

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.