Why is the session_start() function not working properly?

Top WooCommerce & WordPress Plugins Forums Email Verification for WooCommerce Why is the session_start() function not working properly?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #101576
    Alejandro Arredondo
    Guest

    Hello,

    This is the third time I report this issue. There is a critical problem in this plugin managing sessions. WordPress Health reports:

    1 problema crítico

    Una sesión activa de PHP fue detectada

    Se creó una sesión PHP mediante una llamada a la función session_start(). Esto interfiere con la API REST y las solicitudes de bucle invertido. La sesión debe cerrarse en session_write_close() antes de realizar cualquier solicitud HTTP.

    Everytime you upload an update I need to fix it manually by replacing session_start() with

    session_start( [
    	'cache_limiter' => 'private',
                'read_and_close' => true,
                ] );

    Please fix it

    #101577
    Pablo
    Moderator
    Plugin Support

    Hi Alejandro,

    I’m sorry that session_start() hasn’t been working for you as it should. We didn’t have any problems so far with it. You are the first person to report it.

    Just a note, the only option that actually triggers session_start() is “Advanced >
    Prevent login after register” combined with “Redirect” and “Force Redirect”. Maybe you could try to turn “Force redirect” off so you wouldn’t have this problem anymore.

    Anyway, don’t worry. I’m creating a new option for you that I’ll release on the next version that will allow to setup the params passed to session_start().

    I’ll let you know as soon as it’s ready.

    #101578
    Pablo
    Moderator
    Plugin Support

    Hi Alejandro,

    The new version I just released (v2.3.4) has a new option for you at “Advanced > Session start params”. 

    Let me know if you try it 😉

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