When the user logs in he creates sessions and goes to the panel, but he continues with access to the login page. how to send it back to the panel.php when it tries to go to the login page?
sessions:
$user = $_POST['usuario'];
$_SESSION['user'] = $user;
$_SESSION['status'] = 'LOGADO';
$_SESSION['usuario'] = $busca ['usuario'];
$_SESSION['senha'] = $busca ['senha'];