<?php session_start(); // Check if user is logged in if (!isset($_SESSION['logged_in']) || $_SESSION['logged_in'] !== true) { header("Location: login.php"); exit; } // Include the dashboard content include_once('dashboard_content.php'); ?>