]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Developer debug line commented out, sorry@all
[mailer.git] / inc / session-functions.php
index 735f634194ce190711377aab719df80ceab4a7a5..4bd00ec494081aacd42a3b1fc5b20bdf67c0737b 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // Unset/set session variables
 function setSession ($var, $value) {
        // Abort in CSS mode here
-       if (getOutputMode() == 1) return true;
+       if (isCssOutputMode()) return true;
 
        // Trim value and session variable
        $var = trim(secureString($var)); $value = trim($value);
@@ -119,9 +119,9 @@ function destroyMemberSession () {
 // Destroys the admin session
 function destroyAdminSession ($destroy = true) {
        // Kill maybe existing session variables including array elements
-       setSession('admin_login', '');
-       setSession('admin_md5'  , '');
-       setSession('admin_last' , '');
+       setSession('admin_id'  , '');
+       setSession('admin_md5' , '');
+       setSession('admin_last', '');
 
        // Destroy session and return status
        if ($destroy) {