code/table/session.php
public function delete($oid = null)
	{
		$k = $this->_tbl_key;

		if ($oid)
		{
			$this->$k = $oid;
		}

		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName($this->_tbl_key) . ' = ' . $this->_db->quote($this->$k));
		$this->_db->setQuery($query);

		$this->_db->execute();

		return true;
	}
public function delete($oid = null)
	{
		$k = $this->_tbl_key;

		if ($oid)
		{
			$this->$k = $oid;
		}

		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName($this->_tbl_key) . ' = ' . $this->_db->quote($this->$k));
		$this->_db->setQuery($query);

		$this->_db->execute();

		return true;
	}
public function delete ( $ oid = null ) { $ k = $ this -> _tbl_key ; if ( $ oid ) { $ this -> $ k = $ oid ; } $ query = $ this -> _db -> getQuery ( true ) -> delete ( $ this -> _db -> quoteName ( $ this -> _tbl ) ) -> where ( $ this -> _db -> quoteName ( $ this -> _tbl_key ) . ' = ' . $ this -> _db -> quote ( $ this -> $ k ) ) ; $ this -> _db -> setQuery ( $ query ) ; $ this -> _db -> execute ( ) ; return true ; }
Overloaded delete method

We must override it because of the non-integer primary key

@param   integer  $oid  The object id (optional).

@return  mixed  True if successful otherwise an error message

@since   11.1
@deprecated  13.3  Use SQL queries to interact with the session table.
Overloaded delete method