Index: lib/cookie.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/cookie.c,v
retrieving revision 1.105
diff -u -r1.105 cookie.c
--- lib/cookie.c	15 Jun 2009 02:29:49 -0000	1.105
+++ lib/cookie.c	3 Sep 2009 14:48:32 -0000
@@ -365,6 +365,12 @@
                get parsed for whatever reason. This will have the effect that
                the cookie won't match. */
             co->expires = curl_getdate(what, &now);
+            
+            /* Session cookies have expires set to 0 so if we get that back
+               from the date parser let's add a second to make it a 
+               non-session cookie */
+            if (co->expires == 0)
+                co->expires = 1;
           }
           else if(!co->name) {
             co->name = strdup(name);

