mike Wed Jul 12 15:28:18 2006 UTC
Modified files:
/php-src/ext/session session.c
Log:
- add note why replace is 0, so that I don't wonder again in 2 months
why session_regenerate_id() sends the session cookie twice
http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.437&r2=1.438&diff_format=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.437 php-src/ext/session/session.c:1.438
--- php-src/ext/session/session.c:1.437 Tue Jun 13 13:12:19 2006
+++ php-src/ext/session/session.c Wed Jul 12 15:28:18 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.437 2006/06/13 13:12:19 dmitry Exp $ */
+/* $Id: session.c,v 1.438 2006/07/12 15:28:18 mike Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -942,6 +942,8 @@
smart_str_0(&ncookie);
+ /* 'replace' must be 0 here, else a previous Set-Cookie
+ header, probably sent with setcookie() will be replaced! */
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php