code/table/session.php
public function insert($sessionId, $clientId)
	{
		$this->session_id = $sessionId;
		$this->client_id = $clientId;

		$this->time = time();
		$ret = $this->_db->insertObject($this->_tbl, $this, 'session_id');

		if (!$ret)
		{
			$this->setError(JText::sprintf('JLIB_DATABASE_ERROR_STORE_FAILED', strtolower(get_class($this)), $this->_db->stderr()));

			return false;
		}
		else
		{
			return true;
		}
	}
public function insert($sessionId, $clientId)
	{
		$this->session_id = $sessionId;
		$this->client_id = $clientId;

		$this->time = time();
		$ret = $this->_db->insertObject($this->_tbl, $this, 'session_id');

		if (!$ret)
		{
			$this->setError(JText::sprintf('JLIB_DATABASE_ERROR_STORE_FAILED', strtolower(get_class($this)), $this->_db->stderr()));

			return false;
		}
		else
		{
			return true;
		}
	}
public function insert ( $ sessionId , $ clientId ) { $ this -> session_id = $ sessionId ; $ this -> client_id = $ clientId ; $ this -> time = time ( ) ; $ ret = $ this -> _db -> insertObject ( $ this -> _tbl , $ this , 'session_id' ) ; if ( ! $ ret ) { $ this -> setError ( JText :: sprintf ( 'JLIB_DATABASE_ERROR_STORE_FAILED' , strtolower ( get_class ( $ this ) ) , $ this -> _db -> stderr ( ) ) ) ; return false ; } else { return true ; } }
Insert a session

@param   string   $sessionId  The session id
@param   integer  $clientId   The id of the client application

@return  boolean  True on success

@since   11.1
@deprecated  13.3  Use SQL queries to interact with the session table.
Insert a session