diff options
author | Michael Wallner <mike@php.net> | 2006-07-12 15:28:44 +0000 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2006-07-12 15:28:44 +0000 |
commit | 33dbaff1edb39decf988a018a7038e617291523c (patch) | |
tree | 9a5786ec64ce4c94ded39a7d3abc27f3931d9b91 | |
parent | f9070e626aea3cf1f6f48abba15e29b451ac6681 (diff) | |
download | php-git-33dbaff1edb39decf988a018a7038e617291523c.tar.gz |
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
-rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |