httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r645188 - /httpd/httpd/trunk/modules/session/mod_session_dbd.c
Date Sat, 05 Apr 2008 23:52:41 GMT
Author: minfrin
Date: Sat Apr  5 16:52:38 2008
New Revision: 645188

URL: http://svn.apache.org/viewvc?rev=645188&view=rev
Log:
Optimisation: We have no need to distiguish between a Cookie and a Cookie2 when reading cookies,
the
cookie read code reads both at once. [Ruediger Pluem]

Modified:
    httpd/httpd/trunk/modules/session/mod_session_dbd.c

Modified: httpd/httpd/trunk/modules/session/mod_session_dbd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session_dbd.c?rev=645188&r1=645187&r2=645188&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session_dbd.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session_dbd.c Sat Apr  5 16:52:38 2008
@@ -203,16 +203,8 @@
     /* load anonymous sessions */
     if (conf->name_set || conf->name2_set) {
 
-        /* load RFC2109 compliant cookie */
-        if (conf->name_set) {
-            ap_cookie_read(r, conf->name, &key, conf->remove);
-        }
-
-        /* load RFC2965 compliant cookie */
-        if (!key && conf->name2_set) {
-            ap_cookie_read(r, conf->name2, &key, conf->remove);
-        }
-
+        /* load an RFC2109 or RFC2965 compliant cookie */
+        ap_cookie_read(r, name, &key, conf->remove);
         if (key) {
             ret = dbd_load(r, key, &val);
             if (ret != APR_SUCCESS) {



Mime
View raw message