I am editing a user panel, with login among others. But I have a question, when I click on EXIT (the logout of the page), I would need it to refresh the page besides leaving the user account, I already tried to increment several refresh and reload codes but none worked
This is the code that appears in the index
<tr>
<td><a href="javascript: void(0);" onclick="loading(\'?go=painel&deslogar=true\', \'painel\');">SAIR</a></td>
</tr>
This is the code
if($_GET["deslogar"] == true) {
session_destroy();
header("location: ?go=painel&painel=true;");
}