MastodonHelp/web/mustard/include/sessionstart.php

12 lines
300 B
PHP
Raw Normal View History

2019-12-26 21:57:36 +01:00
<?php
session_name('mastostartadmin');
session_start();
2020-04-04 19:17:10 +02:00
if (!array_key_exists('AdmID',$_SESSION) || preg_match('/^[0-9]+$/',$_SESSION['AdmID'])!==1) {
2019-12-26 21:57:36 +01:00
$_SESSION=array();
session_destroy();
2020-01-11 00:51:02 +01:00
muoribene('Sessione scaduta.<br>Puoi andare alla <a href="index.php">pagina di accesso</a>.',false);
2019-12-26 21:57:36 +01:00
}
?>