0
I am editing a user panel, with login among others.
But I have a question, when I click QUIT (the logout of the page), I would need it to update the page besides leaving the user account, I tried incrementing 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;");
}
Put a . / before the redirect address. Example: . /? go=panel*panel=true, or enter the full redirect address, including http or https protocol.
– Clayderson Ferreira