code/libraries/joomlatools/library/user/session/handler/database.php
public function read($session_id)
    {
        $result = '';

        if ($this->getTable()->isConnected())
        {
            $row = $this->_table->select($session_id, KDatabase::FETCH_ROW);

            if (!$row->isNew()) {
                $result = $row->data;
            }
        }

        /*
         * It turns out that session_start() doesn't like the read method of a custom session handler
         * returning false or null if there's no session in existence.
         *
         * See: https://stackoverflow.com/a/48245947
         * See: http://php.net/manual/en/function.session-start.php#120589
         */
        return $result !== null ? $result : '';

    }
public function read($session_id)
    {
        $result = '';

        if ($this->getTable()->isConnected())
        {
            $row = $this->_table->select($session_id, KDatabase::FETCH_ROW);

            if (!$row->isNew()) {
                $result = $row->data;
            }
        }

        /*
         * It turns out that session_start() doesn't like the read method of a custom session handler
         * returning false or null if there's no session in existence.
         *
         * See: https://stackoverflow.com/a/48245947
         * See: http://php.net/manual/en/function.session-start.php#120589
         */
        return $result !== null ? $result : '';

    }
public function read ( $ session_id ) { $ result = '' ; if ( $ this -> getTable ( ) -> isConnected ( ) ) { $ row = $ this -> _table -> select ( $ session_id , KDatabase :: FETCH_ROW ) ; if ( ! $ row -> isNew ( ) ) { $ result = $ row -> data ; } } /*
         * It turns out that session_start() doesn't like the read method of a custom session handler
         * returning false or null if there's no session in existence.
         *
         * See: https://stackoverflow.com/a/48245947
         * See: http://php.net/manual/en/function.session-start.php#120589
         */ return $ result !== null ? $ result : '' ; }
Read session data for a particular session identifier from the session handler backend

@param   string  $session_id  The session identifier
@return  string  The session data
Read session data for a particular session identifier from the session handler backend