Instead of assigning true or false to the session variable, just use “” and " CHECKED". (Note the space before
checked !) And, then, in the displayed section, use just "<?PHP echo $_SESSION["box"]; ?>
This will drop the one compare inside the display. Makes it simpler. It either displays nothing or the checked…