theopfor
In Runtime
- Messages
- 173
- Location
- Right behind you
I try to check if a session stored variable isn't there to determine whether or not a user is logged in, but I get an error about the variable not existing, so I have no idea how to accomplish this without giving the user an error about a variable.
The code is similar to:
and I have tried:
The code is similar to:
Code:
if (!$_SESSION['loggedin'])
Code:
if ($_SESSION['loggedin'] == NULL)