• Resolved jisl

    (@jisl)


    Hello,

    In version 9.5.0 \PixelYourSite\PYS::controllSessionStart was added and this breaks PHP sessions. Let’s say that you create a session in another plugin or in theme functions.php it will be closed by this method.

    The problematic function call in \PixelYourSite\PYS::controllSessionStart is session_write_close() and breaks any functionalities later in the loop that rely on session existing. This is really problematic when the site tries to access data from session after any headers have already been sent.

    Is there any good reason to use session_write_close() here instead of PHP’s default behavior? At least you could check if session is already created and not use this call if it is.

    • This topic was modified 2 years, 3 months ago by jisl.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Version >= 9.5.0 breaks PHP sessions’ is closed to new replies.