These sessions most likely stem from a script / cronjob that is set-up
to regularly request the background queue to ensure it does not fill up
in periods of low user activity. They “fill up” the session table, skew
the user online statistics and are not going to be re-used.
<?php
namespace wcf\action;
use wcf\system\background\BackgroundQueueHandler;
+use wcf\system\WCF;
/**
* Performs background queue jobs.
}
}
echo BackgroundQueueHandler::getInstance()->getRunnableCount();
+ if (WCF::getSession()->isFirstVisit() && !WCF::getUser()->userID) {
+ WCF::getSession()->delete();
+ }
exit;
}
}