diff options
| author | Michael Wallner <mike@php.net> | 2006-07-12 15:28:18 +0000 |
|---|---|---|
| committer | Michael Wallner <mike@php.net> | 2006-07-12 15:28:18 +0000 |
| commit | 1d6027adbd41237e969b51aad085affe56cd2493 (patch) | |
| tree | 8ba24faa64145fc6b9ac901b28b9c727398efbf8 | |
| parent | 550a7186c5b17b5c61cfe66e3cb852234134e669 (diff) | |
| download | php-git-1d6027adbd41237e969b51aad085affe56cd2493.tar.gz | |
- 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 1572a9c49d..80e9525331 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -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); } |
