How to change session_save_path in php.ini file?
Check other files, for example: php_value[session.save_path]
in /etc/php-fpm.d/www.conf
and webservers users should have rights..
It is session.save_path
and not sessions.save_path
(it may have been renamed or something, I don't know, but sessions.save_path
did not work for me)
session.save_path = "/path/to/your/folder"
works fine
It is also important to note that session.save_path
must be called before session_start()
You can modify the session save path on shared hosting by creating a custom php.ini.
Include this in your file: session.save_path = "/path/to/your/folder"
Otherwise, you can use:
ini_set('session.save_path', '/path/to/your/folder')
The folder you use should be under your domain/account but not accessible through a Web browser. It also needs to have world-writable permissions on it. And every page that uses sessions must include that line.