Site health status: Critical issue “An active PHP session was detected”
-
Hi,
I am having an issue with Perfect Survey. In my site health status, I get the following critical performance issue :
“An active PHP session was detected
A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.”
When Perfect Survey is disabled, the issue disappears.
Actually, I was able to fix this problem by changing line 137 in PerfectSurveyPostType.php in my staging environment but I want your confirmation that I am not breaking anything before applying the fix to production :
@session_start([‘read_and_close’ => true]);
Of course, best of all would be a quick plugin update from your team but if you are too busy, could you please at least tell me whether changing this line is ok or risky.
Love your work so keep it up! ??
Thanks in advance,Lavos
- The topic ‘Site health status: Critical issue “An active PHP session was detected”’ is closed to new replies.