Fix session integration in docs.php and cart.php
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
a98b4a655b
commit
f5d1586119
2 changed files with 10 additions and 3 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue