src/SessionHandler.php
public function gc($maxLife): bool
    {
        try {
            $this->storageDriver->clearOld($maxLife * 1000000);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function gc($maxLife): bool
    {
        try {
            $this->storageDriver->clearOld($maxLife * 1000000);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function gc ( $ maxLife ) : bool { try { $ this -> storageDriver -> clearOld ( $ maxLife * 1000000 ) ; return true ; } catch ( Exception $ e ) { return false ; } }
Removes the expired sessions from the storage.

(GC stands for Garbage Collector)

@SuppressWarnings(PHPMD.ShortMethodName)

@param  int $maxLife The maximum time (in seconds) that a session must be kept.
@return bool
Removes the expired sessions from the storage .