1
0
Fork 0
MastodonStartpage/web/admin/include/sessionstart.php

12 lines
249 B
PHP
Raw Permalink Normal View History

2019-12-26 21:57:36 +01:00
<?php
session_name('mastostartadmin');
session_start();
2020-01-11 00:51:02 +01:00
if (!array_key_exists('AdmID',$_SESSION)) {
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
}
?>