9ef488d6f8839563dcd7bacb3e642e5a5ea0c285
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c
index 0fb3485..1b0c53a 100644
--- a/libsoup/soup-cookie.c
+++ b/libsoup/soup-cookie.c
@@ -921,3 +921,12 @@ soup_cookie_applies_to_uri (SoupCookie *cookie, SoupURI *uri)
 
 	return TRUE;
 }
+
+gboolean
+soup_cookie_equal (const SoupCookie *cookie1,
+		   const SoupCookie *cookie2)
+{
+	return (!strcmp (cookie1->name, cookie2->name) &&
+		!strcmp (cookie1->value, cookie2->value) &&
+		!strcmp (cookie1->path, cookie2->path));
+}
diff --git a/libsoup/soup-cookie.h b/libsoup/soup-cookie.h
index a4ec23f..a11d19e 100644
--- a/libsoup/soup-cookie.h
+++ b/libsoup/soup-cookie.h
@@ -64,6 +64,8 @@ void        soup_cookies_free                (GSList           *cookies);
 char       *soup_cookies_to_cookie_header    (GSList           *cookies);
 gboolean    soup_cookie_applies_to_uri       (SoupCookie       *cookie,
 					      SoupURI          *uri);
+gboolean    soup_cookie_equal                (const SoupCookie *cookie1,
+					      const SoupCookie *cookie2);
 
 G_END_DECLS
 
