--- a/fhiiqm/logout.php Thu Sep 12 09:04:56 2013 +0200
+++ b/fhiiqm/logout.php Fri Dec 20 15:19:32 2013 +0100
@@ -1,22 +1,31 @@
-<?php
-
-/**
- * @author Bettina Schwarzer, Fritz-Haber-Institut
- * @copyright 09/2011
- *
- * Loeschen der Session
- */
-
- session_start();
- $_SESSION = array();
-/* // session cookie loeschen, neuer leerer wird auf Server erstellt
- if (ini_get("session.use_cookies")) {
- $params = session_get_cookie_params();
- setcookie(session_name(), '', time() - 42000, $params["path"],
- $params["domain"], $params["secure"], $params["httponly"]
- );
- } */
- session_destroy();
- header("location: /fhiiqm/start.php");
-
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 09/2011
+ *
+ * Loeschen der Session
+ */
+
+ session_start();
+/* // session cookie loeschen, neuer leerer wird auf Server erstellt
+ if (ini_get("session.use_cookies")) {
+ $params = session_get_cookie_params();
+ setcookie(session_name(), '', time() - 42000, $params["path"],
+ $params["domain"], $params["secure"], $params["httponly"]
+ );
+ } */
+ if (isset($_SESSION['user']) && $_SESSION['user'])
+ {
+ unset($_SESSION['userid']);
+ unset($_SESSION['recht']);
+ unset($_SESSION["prodg"]);
+ }
+ else
+ {
+ $_SESSION = array();
+ session_destroy();
+ }
+ header("location: /fhiiqm/start.php");
+
?>
\ No newline at end of file