From: Michael Wallner Date: Wed, 12 Jul 2006 15:28:44 +0000 (+0000) Subject: MFH: add note why replace is 0, so that I don't wonder again in 2 months X-Git-Tag: php-5.2.0RC1~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33dbaff1edb39decf988a018a7038e617291523c;p=php MFH: 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 --- diff --git a/ext/session/session.c b/ext/session/session.c index 9feb7784d0..c3a87ed323 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1053,6 +1053,8 @@ static void php_session_send_cookie(TSRMLS_D) 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); }