MastodonStartpage/web/admin/include/sessionstart.php
pezcurrel 0bec8ceb39 ...
2020-04-04 19:17:10 +02:00

11 lines
300 B
PHP

<?php
session_name('mastostartadmin');
session_start();
if (!array_key_exists('AdmID',$_SESSION) || preg_match('/^[0-9]+$/',$_SESSION['AdmID'])!==1) {
$_SESSION=array();
session_destroy();
muoribene('Sessione scaduta.<br>Puoi andare alla <a href="index.php">pagina di accesso</a>.',false);
}
?>