SW/assets/php/common/resetRol.php
2021-07-02 18:08:16 +02:00

13 lines
310 B
PHP

<?php
include('../config.php');
function reRol(){
if(isset($_SESSION["lastRol"])){
$_SESSION["rol"] = $_SESSION["lastRol"];
unset($_SESSION["lastRol"]);
unset($_SESSION["cinema"]);
}
}
reRol();
$redirect = ROUTE_APP.'panel_'.$_SESSION['rol'];
header("Location: {$redirect}");
?>