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:
Cliff Woolley 2002-05-17 07:10:19 +00:00
parent 57a4a7ed39
commit 34d471d22e

View File

@ -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);
}