Skip to content

Do not start a session on CRON context#85

Merged
stonebuzz merged 3 commits into
mainfrom
fix/no-session-on-cron
Oct 10, 2025
Merged

Do not start a session on CRON context#85
stonebuzz merged 3 commits into
mainfrom
fix/no-session-on-cron

Conversation

@cedric-anne
Copy link
Copy Markdown
Contributor

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.

Description

See glpi-project/glpi#21383.

Variables pushed inside $_SESSION cannot be reused in CLI/CRON context. Therefore, there is no need to start a PHP session to save them. Not starting the PHP session should not be an issue in GLPI 11.0. This was probably necessary in GLPI 10.0 to initialize minimal session variables, but in GLPI 11.0 it is not necessary anymore as they are always initialized.

Comment thread CHANGELOG.md Outdated
@stonebuzz stonebuzz merged commit e934ada into main Oct 10, 2025
3 checks passed
@stonebuzz stonebuzz deleted the fix/no-session-on-cron branch October 10, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants