]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
SQL query fixed
[mailer.git] / inc / modules / member / what-logout.php
index 26c468efc41487da75c1415e6798341411faf0bf..6c7926ac2a9376c7ee3897e5c84dbcffb2ca23f1 100644 (file)
@@ -50,10 +50,10 @@ $URL = URL."/modules.php?module=index";
 // NEW: Fixed the Set of Cookies, you mus add right TimeSet, if you changed it in What_login.php! (eg. time()- cookieTime
 
 
-if (@setcookie("userid", "", time() - 3600, COOKIE_PATH) && @setcookie("u_hash", "", time() - 3600, COOKIE_PATH) && @setcookie("lifetime", "0", time() - 3600, COOKIE_PATH))
+if (set_session("userid", "") && set_session("u_hash", "") && set_session("lifetime", ""))
 {
        // Remove theme cookie as well
-       @setcookie("mxchange_theme", "", time() - 3600, COOKIE_PATH);
+       set_session("mxchange_theme", "");
 
        // Logout completed
        $URL .= "&msg=".CODE_LOGOUT_DONE;