english/libraries/joomla/database/table/session.php
/**
	 * Destroys the pesisting session
	 *
	 * @param  integer  $userId     Identifier of the user for this session.
	 * @param  integer  $clientIds  Array of client ids for which session(s)
	 *                              will be destroyed
	 *
	 * @return  boolean  True on successs.
	 *
	 * @since   11.1
	 */
Destroys the pesisting session
@param  integer  $userId     Identifier of the user for this session.
@param  integer  $clientIds  Array of client ids for which session(s)
will be destroyed

@return  boolean  True on successs.


Destroys the pesisting session @param integer $userId Identifier of the user for this session . @param integer $clientIds Array of client ids for which session ( s ) will be destroyed @return boolean True on successs .
function destroy($userId, $clientIds = array())
	{
		$clientIds = implode(',', $clientIds);
		$query = 'DELETE FROM #__session'
			. ' WHERE userid = '. $this->_db->Quote($userId)
			. ' AND client_id IN ('.$clientIds.')'
			;
		$this->_db->setQuery($query);
		if (!$this->_db->query()) {
			$this->setError($this->_db->stderr());
			return false;
		}
		return true;
	}
function destroy ( $ userId , $ clientIds = array ( ) ) { $ clientIds = implode ( ',' , $ clientIds ) ; $ query = 'DELETE FROM #__session' . ' WHERE userid = ' . $ this -> _db -> Quote ( $ userId ) . ' AND client_id IN (' . $ clientIds . ')' ; $ this -> _db -> setQuery ( $ query ) ; if ( ! $ this -> _db -> query ( ) ) { $ this -> setError ( $ this -> _db -> stderr ( ) ) ; return false ; } return true ; }
Destroys the pesisting session
 @param  integer  $userId     Identifier of the user for this session.
Destroys the pesisting session @param integer $userId Identifier of the user for this session .