![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
YourAdHere
War Room Member
Join Date: Oct 2007
Location: Dalaran
Posts: 39
Thanks: 7
Thanked 1 Time in 1 Post
|
do Iframes affect cookies?
I am an affiliate, but I want better tracking of my sales page, so I want to load the page into an Iframe. But what happens to the cookies? The site has a 15 day cookie and I dont want to tamper with. Does anything have any actual incite? |
|
|
|
|
|
#2 |
|
Advanced Warrior
War Room Member
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently in Montreal Canada)
Posts: 813
Blog Entries: 1
Thanks: 138
Thanked 217 Times in 146 Posts
|
The short answer is "yes, iframes affect cookies". You may run into issues when using an iframe in the way you specified as you're mixing different domains on the same page. Different browsers will treat this situation in their own unique manner, Internet Explorer will probably refuse to use the cookie with its default security setting.
There is a method of "fixing" IE with a "compact privacy policy", details are here: How to set third-party cookies with iframe | 3rd party cookies | p3p header | html | asp | jsp | php Personally I'd avoid doing this as it may impact your affiliate commissions. Bill |
|
|
|
|
|
#3 | |
|
Active Warrior
Join Date: Sep 2008
Posts: 62
Thanks: 3
Thanked 2 Times in 2 Posts
|
Quote:
did not know about this before... will have to check my website. thanks for the advice. | |
|
|
|
|
|
#4 |
|
Active Warrior
Join Date: Dec 2008
Posts: 54
Thanks: 2
Thanked 3 Times in 2 Posts
|
Regarding 3rd party cookies: Although I have implemented How to set third-party cookies with iframe | 3rd party cookies | p3p header | html | asp | jsp | php - viralpatel.net in the source-code of the site = domain that calls the iFrame = second domain, IE wont let the cookies through.
The domain is something like abc.com and it iFrames the new domain xyz.com which uses the cookies. I see it clearly because in IE you cant submit a form to the checkout page, but you get back to the original form-page, because the cookies dont work. The same works in Firefox. The code of the site abc.com looks like this: <html><head> <title>ABC.com for XYZ</title> <meta name="keyword" content="abc, xyz"> <meta name="description" content="abc xyz"></head> <?php header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); ?> <frameset rows="1, *" border="0"> <frame noresize="noresize" src="about:blank" /> <?php $_SERVER['FULL_URL'] = 'http://xyz.com'; if($_SERVER['QUERY_STRING'] > ' ') { $_SERVER['FULL_URL'] .= '?'.$_SERVER['QUERY_STRING']; } print "<frame noresize=\"noresize\" src=\"" . $_SERVER['FULL_URL'] . "\" />"; ?> <frame src="about:blank"></frameset><noframes></noframes> <body> </body> </html> How could IE accept the cookies? |
|
|
|
![]() |
|
| Tags |
| cookies, iframes |
| Thread Tools | |
|
|
![]() |