mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- 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:
parent
550a7186c5
commit
1d6027adbd
1 changed files with 2 additions and 0 deletions
|
@ -942,6 +942,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue