- 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
This commit is contained in:
Michael Wallner 2006-07-12 15:28:18 +00:00
parent 550a7186c5
commit 1d6027adbd

View file

@ -942,6 +942,8 @@ static void php_session_send_cookie(TSRMLS_D)
smart_str_0(&ncookie); 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); sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
} }