From 33dbaff1edb39decf988a018a7038e617291523c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 12 Jul 2006 15:28:44 +0000 Subject: [PATCH] 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 --- ext/session/session.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.40.0