How can I fix the problem with sessions?

Forums Email Verification for WooCommerce How can I fix the problem with sessions?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101465
    Alexander
    Guest

    I found this in stackoverflow: (Please include it in next release)

    In most cases, the real reason of the above errors is the incorrect mechanism for using PHP sessions within plugins or themes when they are using the session_start() function.

    Now you need to identify what plugin cause this issue by deactive your plugin one by one.

    Then in that plugin, you need to find a piece of code similar to this:

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

    then change it to:

    if ( !session_id() ) {
        session_start( [
            'read_and_close' => true,
        ] );
    }
    #107541
    Pablo
    Moderator
    Plugin Support

    Hello,

    Just a note, this is fixed already. The session will start with the arguments from the option:
    – Advanced > Session start params

    And by default, it will already start with the read_and_close as true.

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