PHP - Sessions and Cookies
Find the mistake in this code:
<?php session_start(); echo $_SESSION['name']; $_SESSION['name'] = 'Anna'; ?>
<?php session_start(); echo $_SESSION['name']; $_SESSION['name'] = 'Anna'; ?>
$_SESSION['name'] before it is set.$_SESSION['name'] is not set yet, echo outputs nothing or warning.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions