fixed logout bug

This commit is contained in:
Ricsi
2017-04-29 13:04:01 +02:00
parent ff6666bd92
commit f1d6e2f002

View File

@@ -15,7 +15,7 @@ elseif ($from == 'coach') {
}
log::register($log_c, $_COOKIE['badminton_'.$cookie.'_user']);
setcookie('badminton_'.$from.'_user', 'null', time()-60*60*72, '/');
setcookie('badminton_'.$cookie.'_user', 'null', time()-60*60*72, '/');
unset($_COOKIE['badminton_'.$cookie.'_user']);
header('Location: http://' . $_SERVER['HTTP_HOST'] . '/' . $from);