Hi Nikhil,

I tried this using the following "P3P" header value for my iframe and
this worked fine in IE7. IE7 allowed the nested Iframe to create the
cookies.
CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"

Please find the url of my P3P Test Gadget below and also find below
the JSP code snippet which is loaded in the nested iframe. You can
yourself test out this gadget on IE7
http://hosting.gmodules.com/ig/gadgets/file/117096175175119497472/p3p.xml

Regards,
Rohit

NestIframeJSP.jsp -->
<%
response.setHeader("P3P","CP=\"ALL ADM DEV PSAi COM OUR OTRo STP IND
ONL\"");
%>
<HTML>
<HEAD>
        <script>
                function readCookie(name) {
                        var nameEQ = name + "=";
                        var ca = document.cookie.split(';');
                        for(var i=0;i < ca.length;i++) {
                                var c = ca[i];
                                while (c.charAt(0)==' ') c = 
c.substring(1,c.length);
                                if (c.indexOf(nameEQ) == 0) return
c.substring(nameEQ.length,c.length);
                        }
                        return null;
            }
        </script>
</HEAD>
<BODY>

<%
     session.setAttribute("name","value" );
     out.println("Server created the JSESSIONID cookie by creating a
session.");
%>
   <hr/>
   Running javascript to retrieve these cookies <div
id="placeholder"></div>
   <script>
     document.getElementById("placeholder").innerHTML="JSESSIONID's
value is "+readCookie('JSESSIONID');
   </script>

</BODY>
</HTML>


On Apr 22, 8:11 pm, Nikhil Gupte <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm not able to store session cookies in an IFRAME when using IE 7.
> I've googled on this and got info aboutP3Pand compact privacy
> headers. The headers got the cookies working with IE 6 but not with IE
> 7. I've even tried several options with thep3p.xml and privacy.xml
> settings with no luck.
>
> If anyone has tackled this issue, pl. let me know how.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to