Title: Solution to fix &#8220;Active PHP Session&#8221; critical error
Last modified: December 7, 2021

---

# Solution to fix “Active PHP Session” critical error

 *  [steckinsights](https://wordpress.org/support/users/steckinsights/)
 * (@steckinsights)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/solution-to-fix-active-php-session-critical-error/)
 * WordPress is showing a critical error in Site Health for “An active PHP Session
   was detected”.
 * It states that `session_start()` was not closed.
 * I was unable to find a public repo that I could fork to submit my fix for it.
   You’ll need to edit line 99 of “wp-popup-banners.php” to change this:
 * `session_start();`
 * to this
 * `session_start(['read_and_close' => true]);`
 * As the developer/plugin owner, would you be willing to make that change and push
   a plugin update? Thank you!

The topic ‘Solution to fix “Active PHP Session” critical error’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-popup-banners_63999a.svg)
 * [WP Popup Banners](https://wordpress.org/plugins/wp-popup-banners/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-popup-banners/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-popup-banners/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-popup-banners/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-popup-banners/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-popup-banners/reviews/)

## Tags

 * [session_start](https://wordpress.org/support/topic-tag/session_start/)

 * 0 replies
 * 1 participant
 * Last reply from: [steckinsights](https://wordpress.org/support/users/steckinsights/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/solution-to-fix-active-php-session-critical-error/)
 * Status: not resolved