title: Parse error: syntax error, unexpected '{', expecting function (T_FUNCTION) or const (T_CONST) in session.php on line 37
body: <p>I don't know why but all of the sudden I started getting this error.
  I marked the line 37 in it. I am using xampp server. and below the full error line which I am getting.
  "Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in C:\xampp\htdocs\gallery\admin\includes\functions.php on line 19".</p>
  
  <p>Please help me out in this.</p>
  
  <pre><code>&lt;?php 
  
  
  class Session {
  
  
      private $signed_in = false;
      public  $user_id;
  
  
      function __construct(){
  
          session_start();
          $this-&gt;check_the_login();
      }
  
      public function is_signed_in() {
  
          return $this-&gt;signed_in;
  
      }
  
      public function login($user){
  
          $this-&gt;user_id = $_SESSION["user_id"] = $user-&gt;id;
          $this-&gt;signed_in = true;
      }
  
      public function logout(){
  
          unser($_SESSION["user_id"]);
          unser($this-&gt;user_id);
          $this-&gt;signed_in = false;
  
      }
  
      private function check_the_login(); {  // This is line 37
  
          if (isset($_SESSION["user_id"])) {
              $this-&gt;user_id  = $_SESSION["user_id"];
              $this-&gt;signed_in = true;
          }else {
  
              unset($this-&gt;user_id);
              $this-&gt;signed_in = false;
          }
      }
  
  }
  
  $session = new Session();
  
   ?&gt;
  </code></pre>