Hi guys, I'm making an item shop for a game of my friends, when accessing the shop, I have it check the session to see if you are logged in, if you are it will take you to the shop, if you aren't it will give you a login page, the way I do that is like this.
<?php 
  if($_SESSION['LoggedIn'] == 1)
  {
      //Shop stuff here
  }
  else
  {
    //Login stuff here
  }
?>
However, it shows me an error when they aren't logged in.
Notice: Undefined index: LoggedIn in C:\wamp\www\shop\shop.php on line 29, line 29 being the if($_SESSION['LoggedIn'] == 1) I want to stop this from happening without disabling the PHP errors, any idea how?