I have a script that validates a login (by comparing it to variables) and based upon that, if the login is successful, it places a session variable which is simply a boolean value to check if the user is logged in or not. Is this an insecure way to go about things with sessions?