Files

11 lines
574 B
PHP

<?php
ini_set('session.cache_limiter', '');
header('Cache-Control: no-store, no-cache, must-revalidate, no-transform');
session_start();
if (empty($_SESSION['jarvis_token'])) { header('Location: /login.php'); exit; }
$t = json_encode($_SESSION['jarvis_token']);
$n = json_encode($_SESSION['jarvis_name'] ?? '');
?><!DOCTYPE html><html><head><meta charset="UTF-8"/>
<style>body{background:#000810;margin:0}</style></head>
<body><script>sessionStorage.setItem("jarvis_token",<?=$t?>);sessionStorage.setItem("jarvis_user",<?=$n?>);location.replace("/");</script></body></html>