wp-media / backwpup

BackWPup - WordPress Backup Plugin
https://backwpup.com
GNU General Public License v2.0
88 stars 36 forks source link

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

Open saranshj4 opened 2 weeks ago

saranshj4 commented 2 weeks ago

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 commented 6 days ago

https://wordpress.org/support/topic/php-warning-failed-to-read-session-data/

saranshj4 commented 6 days ago

https://wordpress.org/support/topic/session-errors-2/#post-18095578