Hi,
after building some failover-structures I came across the problem to cleanup expired sessions in the database-table with gc().
The problem there is: the function requires $maxlifetime but does not use it - it uses $this->lifetime instead.
Is there any reason behind this?
thanks
mac
/**
* Garbage Collection
*
* @param int $maxlifetime
* @return true
*/
public function gc($maxlifetime)
{
$platform = $this->tableGateway->getAdapter()->getPlatform();
return (bool) $this->tableGateway->delete(
sprintf(
'%s < %d',
$platform->quoteIdentifier($this->options->getModifiedColumn()),
(time() - $this->lifetime)
)
);
}