Fedora 25 + PHP 7 + Apache 2.4.23
Hello, after I change session.save_path in php.ini and restart apache, I can successfully verify that it's modified with:
$ php -i | grep session.save_path
However, in the html/php pages themselves, the sessions are not written so the session.save_path I set, but they're stubbornly written to /var/lib/php/session/. Even setting the value in .htaccess isn't working:
php_value session.save_path "/mycustom/path/folder"
The only working solution that can override the default /var/lib/php/session/ is to set the value in the php file itself:
ini_set('session.save_path','/mycustom/path/folder');
Any ideas?
1 Answers