code/libraries/joomlatools/library/user/session/handler/database.php
public function write($session_id, $session_data)
    {
        $result = false;

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

            if ($row->isNew()) {
                $row->id   = $session_id;
            }

            $row->time   = time();
            $row->data   = $session_data;
            $row->domain = ini_get('session.cookie_domain');
            $row->path   = ini_get('session.cookie_path');

            $result = $row->save();
        }

        return $result;
    }
public function write($session_id, $session_data)
    {
        $result = false;

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

            if ($row->isNew()) {
                $row->id   = $session_id;
            }

            $row->time   = time();
            $row->data   = $session_data;
            $row->domain = ini_get('session.cookie_domain');
            $row->path   = ini_get('session.cookie_path');

            $result = $row->save();
        }

        return $result;
    }
public function write ( $ session_id , $ session_data ) { $ result = false ; if ( $ this -> getTable ( ) -> isConnected ( ) ) { $ row = $ this -> _table -> select ( $ session_id , KDatabase :: FETCH_ROW ) ; if ( $ row -> isNew ( ) ) { $ row -> id = $ session_id ; } $ row -> time = time ( ) ; $ row -> data = $ session_data ; $ row -> domain = ini_get ( 'session.cookie_domain' ) ; $ row -> path = ini_get ( 'session.cookie_path' ) ; $ result = $ row -> save ( ) ; } return $ result ; }
Write session data to the session handler backend

@param   string  $session_id    The session identifier
@param   string  $session_data  The session data
@return  boolean  True on success, false otherwise
Write session data to the session handler backend