An active PHP session was detected
-
Hi Edward
I just installed your great plugin and configured it based on your excellent tutorial. It works well!
I have run into an issue however. The plugin apparently calls for a PHP session but does not close it. In my “Site Health” monitor I am getting the following warning:
=-=-=-=-=-=-=-=
An active PHP session was detectedA 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 I deactivate your plugin the message disappears.
I did find one file that had a session open with no closing:
classes/mail_integration_365/core.php
Line:38// Start session to store authentication details
if (!isset($_SESSION)) {
session_start();
}The plugin is v1.1.0
WP v5.6Can you please assist me with this?
TIA~
- The topic ‘An active PHP session was detected’ is closed to new replies.