english/libraries/joomla/database/table/session.php
/**
	 * 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
	 */
Insert a session
@param   string   $sessionId  The session id
@param   integer  $clientId   The id of the client application

@return  boolean  True on success


Insert a session @param string $sessionId The session id @param integer $clientId The id of the client application @return boolean True on success
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;
		}
	}
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
Insert a session @param string $sessionId The session id @param integer $clientId The id of the client application