If you are creating a custom session handler that uses files, note that if you have set the `open_basedir` configuration and the session file path is not inside a path declared in that configuration, you will get errors when trying to interact with the session files.
The built-in session save handler is able to bypass `open_basedir`, but your code must respect it.