}
// Base URL for redirection (both cases)
-$URL = URL."/modules.php?module=index";
+$URL = "modules.php?module=index&msg=";
if (destroy_user_session()) {
// Remove theme cookie as well
set_session("mxchange_theme", "");
// Logout completed
- $URL .= "&msg=".CODE_LOGOUT_DONE;
-
- // Destroy session here
- @session_destroy();
+ $URL .= constant('CODE_LOGOUT_DONE');
} else {
// Cannot logout! :-(
- $URL .= "&msg=".CODE_LOGOUT_FAILED;
+ $URL .= constant('CODE_LOGOUT_FAILED');
}
// Load the URL