fbpx

Home Forums Booster Plus Customer Forum Getting “An active PHP session was detected” critical warning in wordpress

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31348
    Maureen
    Participant

    Hi,

    I’m getting “An active PHP session was detected” critical warning in wordpress and it is caused by the “booster plus for woocommerce plugin”. I need to find a piece of code similar to this:

    if ( !session_id() ) {
    session_start();
    }

    And then change it to:

    if ( !session_id() ) {
    session_start( [
    ‘read_and_close’ => true,
    ] );
    }

    In which file can I find this code?

    Many thanks in advance.

    Kind regards,
    Maureen

    #31354
    David G
    Participant

    Hi Maureen,

    Thanks for reaching out to us.

    Please try the following steps and see if the issue is resolved.

    – Enable WooCommerce > Booster Settings > EMAILS & MISC. > General module
    – Change the Session Type in Booster option as WC Sessions / Standard PHP sessions
    – Enable Read and Close option

    Let us know if you have further queries.

    #31359
    Maureen
    Participant

    Hi,

    The steps you provided resolved the issue!

    Thank you for your quick support.

    Kind regards,
    Maureen

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.