PHP - Sessions and Cookies
Identify the error in this PHP code snippet:
<?php
setcookie('theme', 'dark');
session_start();
$_SESSION['theme'] = 'light';
?><?php
setcookie('theme', 'dark');
session_start();
$_SESSION['theme'] = 'light';
?>15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions