<?php
   if (session_status() === PHP_SESSION_NONE) {
      session_start();
   }
   
   $user_check = $_SESSION['login_user'];
   
   // $ses_sql = mysqli_query($db,"Select Email From accounts where Email = '$user_check' ");
   
   // $row = mysqli_fetch_array($ses_sql,MYSQLI_ASSOC);
   
   // //$login_session = $row['username'];
   
   if(!isset($_SESSION['login_user'])){
      header("location:login.php");
      die();
   }
?>