_SESSION handling cleanup start
Move all session_id and check calls function calls that we have to Session class In Login class use new false return for session set check Be sure all session set variables are unset, do extra unset call and destroy call on close session Login class does not set GLOBALS anymore (DEBUG_ALL, DB_DEBUG) Update Logging to check for DEBUG_ALL from SESSION and set DEBUG_ALL on and PRINT_ALL on. All logging setting vars are primary via options and only if not set there fallback to SESSION/GLOBALS and then defaults DB:IO code for debug flag check has been updated for primary check in config, then session/globals Debug update for logging tester for first step to remove Basic class call. NOTE: after basic php unit tests are written the clean up for no longer using Basic class has to start. Switch to logging class for logging only needs
This commit is contained in:
@@ -24,9 +24,7 @@ define('USE_DATABASE', false);
|
||||
// sample config
|
||||
require 'config.php';
|
||||
// set session name
|
||||
if (!defined('SET_SESSION_NAME')) {
|
||||
define('SET_SESSION_NAME', EDIT_SESSION_NAME);
|
||||
}
|
||||
$GLOBALS['SET_SESSION_NAME'] = EDIT_SESSION_NAME;
|
||||
// define log file id
|
||||
$LOG_FILE_ID = 'classTest-debug';
|
||||
ob_end_flush();
|
||||
@@ -37,7 +35,13 @@ use CoreLibs\Debug\Support as DebugSupport;
|
||||
use CoreLibs\Debug\FileWriter;
|
||||
|
||||
$basic = new CoreLibs\Basic();
|
||||
$debug = new CoreLibs\Debug\Logging();
|
||||
$debug = new CoreLibs\Debug\Logging([
|
||||
'log_folder' => BASE . LOG,
|
||||
'file_id' => $LOG_FILE_ID,
|
||||
'debug_all' => $DEBUG_ALL,
|
||||
'print_all' => $PRINT_ALL,
|
||||
'echo_all' => $ECHO_ALL,
|
||||
]);
|
||||
$debug_support_class = 'CoreLibs\Debug\Support';
|
||||
$debug_logging_class = 'CoreLibs\Debug\Logging';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user