]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Performance hacks, encapsulation and more EL code usage:
[mailer.git] / inc / session-functions.php
index 226cad91342fc000fc493412ac9e01470582469c..71f67ca3033d094dc5de2bb4d41b38b23a662721 100644 (file)
@@ -117,12 +117,12 @@ function destroyMemberSession () {
 // Destroys the admin session
 function destroyAdminSession ($destroy = true) {
        // Kill maybe existing session variables including array elements
-       setSession('admin_id'  , '');
-       setSession('admin_md5' , '');
-       setSession('admin_last', '');
+       setAdminId('');
+       setAdminMd5('');
+       setAdminLast('');
 
-       // Destroy session and return status
-       if ($destroy) {
+       // Destroy session if requested and return status
+       if ($destroy === true) {
                return session_destroy();
        } // END - if