]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Speed up of isAdmin()
[mailer.git] / inc / session-functions.php
index 384e3f465ec1a2d7df2195b81b1f31b524c6f28d..7601911fc83cda7d869817202f844b493098a9eb 100644 (file)
@@ -135,6 +135,9 @@ function destroyAdminSession ($destroy = TRUE) {
        setAdminMd5('');
        setAdminLast('');
 
+       // Set cache to FALSE
+       $GLOBALS['isAdmin'] = FALSE;
+
        // Destroy session if requested and return status
        if ($destroy === TRUE) {
                return session_destroy();