:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/finartindia.com/admin/**
:: Editing File: session.php
<?php // Start the session at the beginning of the file session_start(); // Check if the user is NOT logged in. If not, redirect them to the login page. if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) { // Redirect to the login page (index.php or login.html) header("location: index.php"); exit; } // If the user is logged in, you can access their session data here: // $user_id = $_SESSION['id']; // $username = $_SESSION['username']; ?>