mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
fix: use default PHP session (PHPSESSID) not custom name — must match what api.php expects
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
ini_set('session.cache_limiter', '');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||
session_name('jarvis_main');
|
||||
session_start();
|
||||
if (empty($_SESSION['jarvis_token'])) { header('Location: /login.php'); exit; }
|
||||
$t = json_encode($_SESSION['jarvis_token']);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
ini_set('session.cache_limiter', '');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||
session_name('jarvis_main');
|
||||
session_start();
|
||||
if (empty($_SESSION['jarvis_token'])) {
|
||||
header('Location: /login.php');
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
ini_set('session.cache_limiter', '');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||
session_name('jarvis_main');
|
||||
session_start();
|
||||
if (!empty($_SESSION['jarvis_token'])) { header('Location: /'); exit; }
|
||||
$error = '';
|
||||
|
||||
Reference in New Issue
Block a user