X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession-functions.php;h=ebee5cf6f13ce77965ae8a9b48b57d943bf2ff9d;hp=cea985df62ed930f8e1859b54832534b3c5cc836;hb=74b7fbc5030bb2938a9859020876da63e6d15c0b;hpb=1a2db3555e25e6ef6bc397cc9a15b2afb8c7557e diff --git a/inc/session-functions.php b/inc/session-functions.php index cea985df62..ebee5cf6f1 100644 --- a/inc/session-functions.php +++ b/inc/session-functions.php @@ -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] ?>