1
0
Fork 0
MastodonStartpage/web/mustard/include/sessionstart.php
pezcurrel 1ae0e3c71b ...
2020-05-08 17:38:54 +02:00

11 linhas
292 B
PHP

<?php
session_name('mustard');
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);
}
?>