title: The page isn't redirecting properly when I logout
body: <pre><code>&lt;?php
  // Establishing Connection with Server by passing server_name, user_id and password as a parameter
  include 'connection.php';
  
  // session_start();
  
  $user_check=$_SESSION['login_user'];
  // SQL Query To Fetch Complete Information Of User
  
  $ses_sql=mysqli_query($conn, "SELECT * FROM auth where email='$user_check'");
  $row = mysqli_fetch_assoc($ses_sql);
  
  $login_session =$row['email'];
  $username =$row['name'];
  $created_at =$row['created_at'];
  $city =$row['city'];
  $phone =$row['phone'];
  $profile_photo =$row['photo'];
  
  if(!isset($login_session)){
      mysqli_close($conn); // Closing Connection
      header('Location: index.php'); // Redirecting To Home Page
  }
  ?&gt;
  </code></pre>
  
  <p>I am commenting out the <code>session_start()</code> because I'm already starting the  session in another php file that is included.</p>
  
  <p>I can't understand why the the page isn't redirecting properly to the <code>index.php</code> file.</p>