Bug 80036 - cookies with lifetime 0 dies when window is closed -- not the browser
Summary: cookies with lifetime 0 dies when window is closed -- not the browser
Status: RESOLVED DUPLICATE of bug 64182
Alias: None
Product: konqueror
Classification: Applications
Component: kcookiejar (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 01:25 UTC by Engin AYDOGAN
Modified: 2004-05-18 02:28 UTC (History)
0 users

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 Engin AYDOGAN 2004-04-21 01:25:08 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Gentoo Packages

1. Log in a "cookie based session" driven web site
2. After you've login open a link in a new window 
   (i.e. with middle button )
3. Close the new opened window.
4. Session cookie is gone, therefore session is gone.

Konqueror deletes the cookies with lifetime 0 when you close the
window. It's supposed to delete it when the _browser_ is closed.

If this is supposed to be a feature of khtml, it breaks most of the
"cookie based session" driven web sites, if web sites are using
any new windows.
Comment 1 Dawit Alemayehu 2004-04-21 07:42:53 UTC
An issue that caused premature deletion of session cookies has been recently fixed for the next 3.2.x release (> 3.2.2). However, if the cookie is set by the new window, then when that window is closed the cookie added by it will be lost. BTW, what is the difference between a window and a browser ? Did you simply mean one of the windows that did not originally set the cookie ?
Comment 2 Engin AYDOGAN 2004-04-21 09:24:00 UTC
Hmm, yes. The cookie is set set in the first page and updated in every session usage which means new window will set a cookie too.
And the difference is a user ( which is not aware of tabs, or just not used to it ) may ( and probably will ) use extra windows while surfing the web page because it does simple fasten your surfing experience. The lifetime 0 cookies must be deleted when all windows ( thus browser ) is closed in my opinion.

By the way I'm compiling kde 3.2.2.
Comment 3 Dawit Alemayehu 2004-04-21 15:24:42 UTC
Hello,

If the cookie is set in the first window and updated later in another popup window then I think the recent fix will resolve that issue. Please note that the fix did not make it into the 3.2.2 release :( That is why I said > 3.2.2. It will be in the 3.2.3 release whenever that comes out...

Comment 4 Dawit Alemayehu 2004-05-18 02:28:26 UTC

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