From f5d1586119b1337946074e84f0167c5d0a1af062 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 16:21:06 +0000 Subject: [PATCH] Fix session integration in docs.php and cart.php Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- modules/billing/cart.php | 6 +++++- modules/billing/docs.php | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/billing/cart.php b/modules/billing/cart.php index fc0ca9e6..f9f0e088 100644 --- a/modules/billing/cart.php +++ b/modules/billing/cart.php @@ -3,7 +3,11 @@ * Shopping Cart - Display unpaid invoices and PayPal checkout * Standalone billing module - uses only standard PHP mysqli */ -session_start(); +// Start session using the website session name to match the rest of the site +if (session_status() === PHP_SESSION_NONE) { + session_name("gameservers_website"); + session_start(); +} require_once(__DIR__ . '/includes/config.inc.php'); require_once(__DIR__ . '/includes/login_required.php'); diff --git a/modules/billing/docs.php b/modules/billing/docs.php index eb7582b5..3b24f2c0 100644 --- a/modules/billing/docs.php +++ b/modules/billing/docs.php @@ -4,8 +4,11 @@ * Displays a list of documentation categories and allows viewing individual docs */ -// Start session for navigation state -session_start(); +// Start session using the website session name to match the rest of the site +if (session_status() === PHP_SESSION_NONE) { + session_name("gameservers_website"); + session_start(); +} // Include config require_once(__DIR__ . '/includes/config.inc.php');