Page MenuHomestyx hydra

PhabricatorAuthSessionGarbageCollector.php
No OneTemporary

PhabricatorAuthSessionGarbageCollector.php

<?php
final class PhabricatorAuthSessionGarbageCollector
extends PhabricatorGarbageCollector {
public function collectGarbage() {
$session_table = new PhabricatorAuthSession();
$conn_w = $session_table->establishConnection('w');
queryfx(
$conn_w,
'DELETE FROM %T WHERE sessionExpires <= UNIX_TIMESTAMP() LIMIT 100',
$session_table->getTableName());
return ($conn_w->getAffectedRows() == 100);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 26, 9:46 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1551617
Default Alt Text
PhabricatorAuthSessionGarbageCollector.php (442 B)

Event Timeline