Hello friends, I am having a confusion in my script please explain me what is it doing i don't know what it is i don't understand sessions very well, so please explain it
if (isset($_SESSION['SBUser'])) {
$user_id =*** $_SESSION['SBUser']***;
$query = $db->query("SELECT * FROM users WHERE id = '$user_id'");
$user_data = mysqli_fetch_assoc($query);
$fn = explode(' ', $user_data['full_name']);
$user_data['first'] = $fn['0'];
$user_data['last'] = $fn['1'];
}
$_SESSION['SBUser'];
please explain me what does it mean.