In general, such a problem that is necessary when the system is entered so that the header (navigation.php) changes to (login-navigation)
I am redirecting the header in the file login-navigation.php
<?php session_start(); include_once 'db.php'; if (!isset($_SESSION['userSession'])) { header("Location: login-user.php"); } ?> Initially, my page is divided into header, content, footer.
Header on the index page, I call this way:
<header class="header"> <div> <?php include('navigation.php'); ?> </header> The problem is that the same header remains
