code/table/session.php
public function purge($maxLifetime = 1440)
	{
		$past = time() - $maxLifetime;
		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName('time') . ' < ' . (int) $past);
		$this->_db->setQuery($query);

		return $this->_db->execute();
	}
public function purge($maxLifetime = 1440)
	{
		$past = time() - $maxLifetime;
		$query = $this->_db->getQuery(true)
			->delete($this->_db->quoteName($this->_tbl))
			->where($this->_db->quoteName('time') . ' < ' . (int) $past);
		$this->_db->setQuery($query);

		return $this->_db->execute();
	}
public function purge ( $ maxLifetime = 1440 ) { $ past = time ( ) - $ maxLifetime ; $ query = $ this -> _db -> getQuery ( true ) -> delete ( $ this -> _db -> quoteName ( $ this -> _tbl ) ) -> where ( $ this -> _db -> quoteName ( 'time' ) . ' < ' . ( int ) $ past ) ; $ this -> _db -> setQuery ( $ query ) ; return $ this -> _db -> execute ( ) ; }
Purge old sessions

@param   integer  $maxLifetime  Session age in seconds

@return  mixed  Resource on success, null on fail

@since   11.1
@deprecated  13.3  Use SQL queries to interact with the session table.
Purge old sessions