mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Only the last cookie was getting set. (You can have
more than one Set-Cookie: header, as indicated by http://wp.netscape.com/newsref/std/cookie_spec.html.) PR: 16626 Submitted by: regina@hitel.net
This commit is contained in:
parent
57a4a7ed39
commit
34d471d22e
@ -121,7 +121,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
|
||||
strcat(cookie, "; secure");
|
||||
}
|
||||
|
||||
return sapi_add_header(cookie, strlen(cookie), 0);
|
||||
return sapi_add_header_ex(cookie, strlen(cookie), 0, 0 TSRMLS_CC);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user