]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
More variables renamed to , install/admin_WriteData() is now generic (with open TODO)
[mailer.git] / inc / modules / member / what-logout.php
index 00e83449b030e30e120f2be25314c790ea9e0956..39829c6c76bb075292b49707ee9c271fa9d59d4d 100644 (file)
@@ -40,20 +40,17 @@ if (!defined('__SECURITY')) {
 }
 
 // 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