Hi,<br><br>I want to re-raise the topic of duplicate cookies.  I've had this issue with the older version of Drakma (1.1.0) and was unaware of the patch with *remove-duplicate-cookies-p*.<br>But investigating the problem (before I've read the discussion in the mailing list), I've encountered it's cause in the source code, that is highlighted in the attached diff.  The problem is, that SET-DIFFERENCE and UNION are not supplied COOKIE= tests in UPDATE-COOKIES.<br>

<br>It still remains in the current version (1.2.2) and can be tested like this:<br><br>CL-USER> (defvar *cookies* (make-instance 'drakma:cookie-jar))<br>*COOKIES*<br>CL-USER> (drakma::update-cookies (list (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/")<br>

                                      (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/"))<br>                                *cookies*)<br>

#<DRAKMA:COOKIE-JAR (with 2 cookies) {B629521}><br><div style="margin-left: 40px;"><br></div>I think, that this is a bug, because without the TEST argument, for example, SET-DIFFERENCE in this case will constantly return the first set (see below), so either the code should be simplified or the test argument should be added.<br>

<br>CL-USER> (set-difference (list (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/")<br>                              (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/"))<br>

                        (list (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/")<br>                              (make-instance 'drakma:cookie :name "lang" :value "en" :domain "<a href="http://site.com">site.com</a>" :path "/")))<br>

(#<DRAKMA:COOKIE lang=en; path=/; domain=<a href="http://site.com">site.com</a>><br> #<DRAKMA:COOKIE lang=en; path=/; domain=<a href="http://site.com">site.com</a>>)<br><br>So, I believe, that this part should also be fixed, especially, since UPDATE-COOKIES is called alongside with GET-COOKIES.<br>

<br>Best regards,<br>Vsevolod<br>