PHP - Sessions and Cookies
Identify the error in this PHP code snippet for setting a secure cookie:
setcookie('session', 'abc123', time() + 3600, '/', '', 'true', true);setcookie('session', 'abc123', time() + 3600, '/', '', 'true', true);secure parameter must be a boolean (true/false), not a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions