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
|
<?php
|
||||||
ini_set('session.cache_limiter', '');
|
ini_set('session.cache_limiter', '');
|
||||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||||
session_name('jarvis_main');
|
|
||||||
session_start();
|
session_start();
|
||||||
if (empty($_SESSION['jarvis_token'])) { header('Location: /login.php'); exit; }
|
if (empty($_SESSION['jarvis_token'])) { header('Location: /login.php'); exit; }
|
||||||
$t = json_encode($_SESSION['jarvis_token']);
|
$t = json_encode($_SESSION['jarvis_token']);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set('session.cache_limiter', '');
|
ini_set('session.cache_limiter', '');
|
||||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||||
session_name('jarvis_main');
|
|
||||||
session_start();
|
session_start();
|
||||||
if (empty($_SESSION['jarvis_token'])) {
|
if (empty($_SESSION['jarvis_token'])) {
|
||||||
header('Location: /login.php');
|
header('Location: /login.php');
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set('session.cache_limiter', '');
|
ini_set('session.cache_limiter', '');
|
||||||
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
|
||||||
session_name('jarvis_main');
|
|
||||||
session_start();
|
session_start();
|
||||||
if (!empty($_SESSION['jarvis_token'])) { header('Location: /'); exit; }
|
if (!empty($_SESSION['jarvis_token'])) { header('Location: /'); exit; }
|
||||||
$error = '';
|
$error = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user