TPSBIN/functions.php
// As functions.php is not included
As functions.php is not included
As functions . php is not included
function sec_session_start() {
        if(!isset($_SESSION)){
            session_start();
        }
    }
function sec_session_start ( ) { if ( ! isset ( $ _SESSION ) ) { session_start ( ) ; } }
As functions.php is not included
As functions . php is not included
/*
        $session_name = 'sec_session_id';   // Set a custom session name
        $secure = SECURE;
        // This stops JavaScript being able to access the session id.
        $httponly = true;
        // Forces sessions to only use cookies.
        if (ini_set('session.use_only_cookies', 1) === FALSE) {
            header("Location: ../error.php?err=Could not initiate a safe session (ini_set)");
            exit();
        }
        // Gets current cookies params.
        $cookieParams = session_get_cookie_params();
        session_set_cookie_params($cookieParams["lifetime"],
            $cookieParams["path"],
            $cookieParams["domain"],
            $secure,
            $httponly);
        // Sets the session name to the one set above.
        session_name($session_name);
        session_start();            // Start the PHP session
        session_regenerate_id();    // regenerated the session, delete the old one. */