Bug 59189 - konqueror does not overwrite old cookies with new ones
Summary: konqueror does not overwrite old cookies with new ones
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: kcookiejar (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-31 22:42 UTC by Christian Welzel
Modified: 2003-12-11 08:11 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 Christian Welzel 2003-05-31 22:42:23 UTC
Version:            (using KDE KDE 3.1.2)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 3.2.x 
OS:          Linux

konqueror does not overwrite an old cookie with the new value,
but it appends the new cookie to the list of cookies of the domain.
so i have two cookies with the same name but different values
and ending times... normaly it should set the new value and time
for the cookie...
i have spoken to several people and all of them agree.
Comment 1 Dawit Alemayehu 2003-06-01 13:41:37 UTC
Hello, 
 
You will need to be more specific. kcookiejar properly replaces old cookies with 
a newer ones based on the first paragraph in section 4.3.3 of RFC 2109 or 
section 3.3.3 of RFC 2965. Can you provide a link where you are seeing this 
problem ? Or alternatively a the cookie header(s) you are using to test this ?  
 
Regards, 
Dawit A. 
Comment 2 gawain 2003-06-01 19:35:19 UTC
Subject: Re:  konqueror does not overwrite old cookies with new ones

Am Sonntag, 1. Juni 2003 13:41 schrieben Sie:

> or section 3.3.3 of RFC 2965. Can you provide a link where you are seeing
> this problem ? Or alternatively a the cookie header(s) you are using to
> test this ?

Currently i can not reproduce this, but it happend several times...
i thought about making a screenshot last time, but i decided to give it
another try and now the problem doesnt come back :(
Here is the code i use on my site www.wh9.tu-dresden.de:

    /* the skin choice from get */
    if(isset($_GET['xskin'])) {
        if(!preg_match("/^\w+$/i", $_GET['xskin'])) 
		die('Bad skin name from GET variable!');
        $_SESSION['skin'] = $_GET['xskin'];
        setcookie("XSkin", $_SESSION['skin'], time()+2592000); // one month
        unset($_GET['xskin']);
    }

As you can see you can set the prefered skin by using the paramter "xskin".

Comment 3 gawain 2003-06-01 19:41:25 UTC
Subject: Re:  konqueror does not overwrite old cookies with new ones

Am Sonntag, 1. Juni 2003 19:35 schrieben Sie:

> Currently i can not reproduce this, but it happend several times...
> i thought about making a screenshot last time, but i decided to give it
> another try and now the problem doesnt come back :(

Ok. tried it again after sending the mail and there is it!
screenshots under http://www.wh9.tu-dresden.de/~gawain/konq

Comment 4 meusel 2003-06-01 19:56:36 UTC
Me too. Using Debian/i386 unstable KDE 3.1.2 GCC 3.3.

Happens sometimes when trying to login to http://www.unihelp.de using the saved 
cookie.

lg
Erik

P.S.: Removing the cookie(s) in ~/.kde/share/apps/kcookiejar/cookies, logging 
in again helps for some days.
Comment 5 Dawit Alemayehu 2003-12-11 08:11:12 UTC
I tried this again with your site and no matter what I do I cannot duplicate the problem. Please feel free to re-open this report if the problem still occurs in the current stable 3.1.x or 3.2 beta releases. Thanks for the report.