<?php
// index.php — entry point, redirects based on login status

session_name('mhp_purchasing_session');
session_start();

if (isset($_SESSION['user_id'])) {
    header('Location: transaction_details.php');
    exit;
}

header('Location: login.php');
exit;
