set session.save_handler and PHP 7.2

Unable to set session.save_handler in my code

https://stackoverflow.com/questions/55785829/unable-to-set-session-save-handler-in-my-code

ini_set(‘session.save_handler’, ‘user’);

As I see in php.ini, the default value is “files”. I try to change the value to files, but it’s the same. Until PHP 7.1, everything works fine, but on PHP 7.2 and PHP 7.3, I have this problem. I really can’t understand why this function not working. It doesn’t return any error, just a blank page with code 200 (not 500 as server error).

Use session_set_save_handler () function will save the session to the MySQL database

https://titanwolf.org/Network/Articles/Article?AID=daf5234f-55bb-499f-8b51-c1ca969d85c8

Setting session_set_save_handler for one page only

https://stackoverflow.com/questions/39149806/setting-session-set-save-handler-for-one-page-only

session_set_save_handler
http://www.hackingwithphp.com/10/3/7/files-vs-databases

FileSessionHandler:
https://docs.w3cub.com/php/function.session-set-save-handler

As of PHP 5.4 you can revert to the default session handler by instantiating the SessionHandler class directly:
https://stackoverflow.com/questions/21376892/how-to-unset-session-save-handler

Logger:
https://github.com/advename/Simple-PHP-Logger

Blogbook : PHP | Javascript | Laravel | VueJs | Python | TensorFlow