C Codeman New member Apr 8, 2009 #1 Im making a PHP code to check if a user is logged in. how does the isset() function work? Will this work? if (isset($_SESSION['LoggedOn']) { IF THERE IS A SESSION VARIABLE DO THIS } else { IF NO SESSION VARIABLE DO THIS }
Im making a PHP code to check if a user is logged in. how does the isset() function work? Will this work? if (isset($_SESSION['LoggedOn']) { IF THERE IS A SESSION VARIABLE DO THIS } else { IF NO SESSION VARIABLE DO THIS }