Topic: Question about logout.
Hello. Im trying to integrate punbb:s logout in my own logoutscript. Everything seems to work fine but I have a question about the following code from punbb:s logoutfunction:
if ($pun_user['is_guest'] || !isset($_GET['id']) || $_GET['id'] != $pun_user['id'])
{
header('Location: index.php');
exit;
}
What is it doing and what will happen if I take it away? As I can see it still works as normal. I dont want to send the users id to my logout file, "?action=out&id=5576", when loging out and it dosn't seems to be necessary if I remove the code above.
/Peps