summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18caf0f)
raw | patch | inline | side by side (parent: 18caf0f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 1 Feb 2006 12:26:49 +0000 (12:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 1 Feb 2006 12:26:49 +0000 (12:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2615 594d385d-05f5-0310-b6e9-bd551577e9d8
html/logout.php | patch | blob | history |
diff --git a/html/logout.php b/html/logout.php
index ba44304bf18e0a7799c0a7eca3537870742987d4..fa34ff3c36a3dcf7ca2afa55da548bd4b241718e 100644 (file)
--- a/html/logout.php
+++ b/html/logout.php
require_once ("functions.inc");
header("Content-type: text/html; charset=UTF-8");
get_dir_list("$BASE_DIR/plugins");
-session_start ();
-
+@session_start();
/* Do logout-logging and destroy session */
-if (!isset($_SESSION["config"])){
+
+if(isset($_SESSION['logout_was_posted_several_times'])){
+ header ("Location: index.php");
+}
+
+if (isset($_SESSION['config'])){
+ $ui= $_SESSION["ui"];
+ $config= $_SESSION["config"];
+
+ /* Remove all locks of this user */
+ del_user_locks($ui->dn);
+
+ @session_unset ();
+ @session_destroy ();
+ @session_start();
+ $_SESSION['logout_was_posted_several_times'] = 1;
+ gosa_log ("User \"".$ui->username."\" logged out".$_SESSION['logout_was_posted_several_times']);
+ /* Go back to the base via header */
+ header ("Location: index.php");
+
+}else{
/* Language setup */
if ($config->data['MAIN']['LANG'] == ""){
$lang= get_browser_language();
$smarty->display (get_template_path('headers.tpl'));
$smarty->display (get_template_path('logout.tpl'));
@session_destroy ();
+ @session_unset ();
exit;
}
-$ui= $_SESSION["ui"];
-$config= $_SESSION["config"];
-gosa_log ("User \"".$ui->username."\" logged out");
-
-/* Remove all locks of this user */
-del_user_locks($ui->dn);
-
-@session_destroy ();
-
-/* Go back to the base via header */
-header ("Location: index.php");
-
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
</html>