Is there a way to detect and throw an error if PHP session is not writable?
In a large code base, it can be difficult to know if session_write_close()
was called prior to a session changing code. And when you think you are updating the session, it might be actually not writable, and this can go unnoticed.