Top WooCommerce & WordPress Plugins › Forums › Email Verification for WooCommerce › Why is the session_start() function not working properly?
- Support forum for the Email Verification for WooCommerce.
- This topic has 2 replies, 2 voices, and was last updated 1 year, 4 months ago by
Pablo.
- AuthorPosts
-
April 28, 2022 at 5:00 pm #101576
Alejandro Arredondo
GuestHello,
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 ensession_write_close()
antes de realizar cualquier solicitud HTTP.Everytime you upload an update I need to fix it manually by replacing
session_start()
withsession_start( [ 'cache_limiter' => 'private', 'read_and_close' => true, ] );
Please fix it
April 29, 2022 at 10:41 pm #101577Hi 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.
May 2, 2022 at 7:53 pm #101578Hi 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 😉
- AuthorPosts
- You must be logged in to reply to this topic.