MastodonHelp/web/mustard/include/sessionstart.php
pezcurrel 85876775c4 ...
2020-05-07 07:24:56 +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);
}
?>