An active PHP session was detected
-
Greetings,
Just wanted to let the author of the plugin know about a problem with a certain php function that causes WordPress Site Health to report a critical performance issue “An active PHP session was detected“.
The code that causes this error is located in /wp_ad_guru.php on line 242: “if( session_id() == “” && !defined( ‘DOING_CRON’ ) && !isset( $_GET[‘doing_wp_cron’] ) ){ session_start(); }”.
When closed with “session_write_close();”, as recommended by Site Health, the error is no longer present.
As stated by the inline comment the above code is responsible for the geo location feature. I personally don’t use it and can’t confirm if adding “session_write_close();” breaks this functionality or if it’s even correctly implemented.
Regards,
Chris
- The topic ‘An active PHP session was detected’ is closed to new replies.