private function init()
    {
        $nb_engine = CNabuEngine::getEngine();

        $session_name = session_name();
        $nb_engine->traceLog("Session Name", $session_name);
        if (array_key_exists($session_name, $_GET)) {
            $sessid = filter_input(INPUT_GET, $session_name);
            if (preg_match('/^[a-zA-Z0-9]{26}$/', $sessid)) {
                session_id($sessid);
                $nb_engine->traceLog("Session source", "GET");
            } else {
                $nb_engine->traceLog("Session source", "COOKIE");
            }
        } else {
            $nb_engine->traceLog("Session source", "COOKIE");
        }
    }
private function init()
    {
        $nb_engine = CNabuEngine::getEngine();

        $session_name = session_name();
        $nb_engine->traceLog("Session Name", $session_name);
        if (array_key_exists($session_name, $_GET)) {
            $sessid = filter_input(INPUT_GET, $session_name);
            if (preg_match('/^[a-zA-Z0-9]{26}$/', $sessid)) {
                session_id($sessid);
                $nb_engine->traceLog("Session source", "GET");
            } else {
                $nb_engine->traceLog("Session source", "COOKIE");
            }
        } else {
            $nb_engine->traceLog("Session source", "COOKIE");
        }
    }
private function init ( ) { $ nb_engine = CNabuEngine :: getEngine ( ) ; $ session_name = session_name ( ) ; $ nb_engine -> traceLog ( "Session Name" , $ session_name ) ; if ( array_key_exists ( $ session_name , $ _GET ) ) { $ sessid = filter_input ( INPUT_GET , $ session_name ) ; if ( preg_match ( '/^[a-zA-Z0-9]{26}$/' , $ sessid ) ) { session_id ( $ sessid ) ; $ nb_engine -> traceLog ( "Session source" , "GET" ) ; } else { $ nb_engine -> traceLog ( "Session source" , "COOKIE" ) ; } } else { $ nb_engine -> traceLog ( "Session source" , "COOKIE" ) ; } }
This method initializes the instance.
Init process consists in start the session and check all objects stored in session
to relink the database connection of each one.
This method initializes the instance . Init process consists in start the session and check all objects stored in session to relink the database connection of each one .