Answers for "check if session name exist"

PHP
1

check if session variable exists php

if (isset($_SESSION['errors']))
{
    //Do stuff
}
Posted by: Guest on May-06-2020
6

check if session is set

if (isset($_SESSION["userid"])) {
	echo "Logged in";
} else {
	echo "Not Logged in";
}
Posted by: Guest on September-04-2021

Browse Popular Code Answers by Language