lmsace / lmsace-connect-woocommerce

WooCommerce Extension - WordPress plugin to sell Moodle LMS courses through the WooCommerce
6 stars 2 forks source link

Site health security issue on health panel #6

Open MauricioTRP opened 1 year ago

MauricioTRP commented 1 year ago

Hi!

First of all I'm really enjoying this work, congrats!

I've have installed this plugin and suit perfect my needs, but when I checked the site health on the wordpress panel It says there's a critical issue with an open PHP session.

This is the full message:

A PHP session was created by the function session_start(). This interferes with the REST API and the Loopback requests. The session must be closed by session_write_close() before make any HTTP request.

This is a screenshot in spanish of this problem.

imagen

I've found this call to session_start() on the includes/class_lac.php file

I'm not sure how to close this session without break this already working plugin.