com_plugins.task.sessiongc task using Joomla Schedulerphp cli/joomla.php scheduler:run --all#__session table#__session table againExpired session records (older than the configured lifetime) are removed from the #__session table both when:
databasephp cli/joomla.php scheduler:run --allIt appears that the session cleanup (gc()) relies on an active session handler context, which is not properly initialized in CLI mode. This causes Factory::getSession()->getHandler()->gc() to have no effect during CLI runs.
The issue is not configuration-related: the same task, with no changes, works as expected via the backend.
Please consider:
This issue affects Joomla administrators relying on the Scheduler system as a unified automation method.
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
bug
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-09-19 13:54:10 |
| Closed_By | ⇒ | alikon |
please test #46128