[feladat @ 72]
authorrejo
Mon, 25 Jun 2007 20:57:22 +0000
changeset 25 576034a80ea8
parent 24 9f0138ac3028
child 26 5d63f1e71d6e
[feladat @ 72] After a user had logged out, the menu bar was still shown until a reloading the login screen. [Fix: Peter Beernink]
inc/auth.inc.php
--- a/inc/auth.inc.php	Mon Jun 25 20:52:41 2007 +0000
+++ b/inc/auth.inc.php	Mon Jun 25 20:57:22 2007 +0000
@@ -102,6 +102,9 @@
 		$msg = _('You have logged out.');
 		$type = "success";
 	};
+	unset($_SESSION["userid"]);
+	unset($_SESSION["name"]);
+	unset($_SESSION["level"]);;
 	session_destroy();
 	session_write_close();
 	auth($msg, $type);