CodeIgniter Forums

Full Version: Why session->destroy()?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently working on a REST-based backend and as always the questions is about concurrency. Referring to https://codeigniter4.github.io/userguide...sions.html and the section "A note about concurrency". Why on earth would I use session->destroy()?!? This will clear out the session and all data. 
Isn't session_write_close() as soon as you can the correct way to handle concurrency?
I believe you are correct. The docs should say session_write_close()