public function gc($sessMaxLifeTime)
{
if ($this->_automaticCleaningFactor > 0) {
if ($this->_automaticCleaningFactor == 1 || rand(1, $this->_automaticCleaningFactor) == 1) {
$where = array('session_expires < ?' => Varien_Date::toTimestamp(true));
$this->_write->delete($this->_sessionTable, $where);
}
}
return true;
}