PHP - Sessions and Cookies
Find the bug in this PHP code snippet:
<?php
session_start();
if($_SESSION['logged_in'] = true) {
echo 'Welcome!';
}
?><?php
session_start();
if($_SESSION['logged_in'] = true) {
echo 'Welcome!';
}
?>15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions