Is this code correct? SEE DETAILS its about the isset() function in PHP?

Codeman

New member
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 }
 
Back
Top