header('Set-Cookie: test1=test2; path=/');
header('Set-Cookie: meepo=3927; path=/');
header('Set-Cookie: 1234567=890; path=/');
Only the last value is set 1234567=890, how to set more than one cookie?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According the manual for header() the signature of this function is like
The second parameter is
truebe default and it tells you, that previous headers with the same name will be overwritten. Set it tofalse