Skip to content

Instantly share code, notes, and snippets.

View herr03107-code's full-sized avatar

herr03107-code

  • Joined May 19, 2026
View GitHub Profile
<?php
session_start();
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Pragma: no-cache");
// ===== error_reporting(E_ALL);
// ===== ini_set('display_errors', 1);
if (!isset($_SESSION['user'])) {
header('Location: index.php');
exit;
}