code/table/session.php
public function destroy($userId, $clientIds = array())
	{
		$clientIds = implode(',', $clientIds);

		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName('userid') . ' = ' . $this->_db->quote($userId))
			->where($this->_db->quoteName('client_id') . ' IN (' . $clientIds . ')');
		$this->_db->setQuery($query);

		if (!$this->_db->execute())
		{
			$this->setError($this->_db->stderr());

			return false;
		}

		return true;
	}
public function destroy($userId, $clientIds = array())
	{
		$clientIds = implode(',', $clientIds);

		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName('userid') . ' = ' . $this->_db->quote($userId))
			->where($this->_db->quoteName('client_id') . ' IN (' . $clientIds . ')');
		$this->_db->setQuery($query);

		if (!$this->_db->execute())
		{
			$this->setError($this->_db->stderr());

			return false;
		}

		return true;
	}
public function destroy ( $ userId , $ clientIds = array ( ) ) { $ clientIds = implode ( ',' , $ clientIds ) ; $ query = $ this -> _db -> getQuery ( true ) -> delete ( $ this -> _db -> quoteName ( $ this -> _tbl ) ) -> where ( $ this -> _db -> quoteName ( 'userid' ) . ' = ' . $ this -> _db -> quote ( $ userId ) ) -> where ( $ this -> _db -> quoteName ( 'client_id' ) . ' IN (' . $ clientIds . ')' ) ; $ this -> _db -> setQuery ( $ query ) ; if ( ! $ this -> _db -> execute ( ) ) { $ this -> setError ( $ this -> _db -> stderr ( ) ) ; return false ; } return true ; }
Destroys the pre-existing session

@param   integer  $userId     Identifier of the user for this session.
@param   array    $clientIds  Array of client ids for which session(s) will be destroyed

@return  boolean  True on success.

@since   11.1
@deprecated  13.3  Use SQL queries to interact with the session table.
Destroys the pre - existing session