]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Continued on AJAX installer to start first step (more are easily to add)
[mailer.git] / inc / session-functions.php
index cea985df62ed930f8e1859b54832534b3c5cc836..ebee5cf6f13ce77965ae8a9b48b57d943bf2ff9d 100644 (file)
@@ -143,7 +143,7 @@ function destroyAdminSession ($destroy = FALSE) {
                return destroySession();
        } // END - if
 
-       // All fine if we shall not really destroy the session
+       // All fine if the session shall not really be destroyed
        return TRUE;
 }
 
@@ -168,5 +168,20 @@ function isSessionValid () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether all given session data is set
+function isSessionDataSet ($sessionData) {
+       // Default is set
+       $isset = TRUE;
+
+       // Check all
+       foreach ($sessionData as $key) {
+               // Is this element set?
+               $isset = (($isset) && (isSessionVariableSet($key)));
+       } // END - foreach
+
+       // Return result
+       return $isset;
+}
+
 // [EOF]
 ?>