]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
cookies rewritten to session
[mailer.git] / inc / modules / member / what-logout.php
index 26c468efc41487da75c1415e6798341411faf0bf..797f8e262dd4e7fcf06fc66ead931e53b9045502 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", "", time() - 3600, COOKIE_PATH) && set_session("u_hash", "", time() - 3600, COOKIE_PATH) && set_session("lifetime", "", time() - 3600, COOKIE_PATH))
 {
        // Remove theme cookie as well
-       @setcookie("mxchange_theme", "", time() - 3600, COOKIE_PATH);
+       set_session("mxchange_theme", "", time() - 3600, COOKIE_PATH);
 
        // Logout completed
        $URL .= "&msg=".CODE_LOGOUT_DONE;