Bug 139504 - Konqueror rejects cookies in iframes sourced from another domain
Summary: Konqueror rejects cookies in iframes sourced from another domain
Status: RESOLVED DUPLICATE of bug 84232
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 14:04 UTC by morhekil
Modified: 2008-06-02 13:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description morhekil 2007-01-02 14:04:01 UTC
Version:           3.5.5 (using KDE 3.5.5, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.16-suspend2-r8

When one a document inserted into another one with iframe tag sets a cookie Konqueror rejects it though it is perfectly valid and should be accepted. Firefox and IE accept such cookies without any problems.
Code examples:

1. First page, http://domain1/index.html
<html><body>
<iframe src="http://domain2/frame.php"></iframe>
</body></html>

2. Second page that sets a cookie, http://domain2/frame.php
<? setcookie('tst', md5(uniqid()), time()+3600, '/'); ?>
<html><body>
Cookie: <?=$_COOKIE['tst'];?>
</body></html>

Expected result: 
Cookie's value shown after page reload.

Actual result:
No cookies.

The second page works fine when it's opened alone, without iframe, the problem occurs only when it is inserted into a page from another domain.
Comment 1 Jarl Friis 2007-11-11 20:59:51 UTC
This might be a duplicate of bug 84232.
Comment 2 Christophe Marin 2008-06-02 13:06:33 UTC

*** This bug has been marked as a duplicate of 84232 ***