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:
database
php cli/joomla.php scheduler:run --all
It 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
|