Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Session Handling in restore_boot() to Prevent Unnecessary session_start() Calls #146

Open
saranshj4 opened this issue Oct 17, 2024 · 2 comments
Assignees

Comments

@saranshj4
Copy link

Is your feature request related to a problem? Please describe.

The restore_boot() function currently triggers session_start() on every load across frontend, backend, and AJAX calls, resulting in thousands of log entries with messages like "session_start() will be ignored because a session is already active" when other plugins or custom code also initiate sessions. This causes session conflicts, as the BackWPUp session isn't recognized by other session_start() checks.

Describe the solution you'd like
Comment from @danielhuesken: https://group-onecom.slack.com/archives/C05CYKYC78W/p1728977420819399?thread_ts=1728976672.165849&cid=C05CYKYC78W

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
User ticket: https://wordpress.org/support/topic/session-errors-2/#post-18080021

@saranshj4
Copy link
Author

@saranshj4
Copy link
Author

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

No branches or pull requests

2 participants