Answers for "check if session is set"

PHP
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

Code answers related to "check if session is set"

Browse Popular Code Answers by Language