Why is the session file storage path in php. after ini modifies the storage location of the session file and restarts nginx, the session file is stored in/var/lib/php/session/by default instead of my php. what about the path specified by ini .?
Session. save_handler = files
Session. save_path = "/var/www_upload/session"
Reply to discussion (solution)
Phpinfo ();
?>
Check session. save_path and check whether the modification is successful.
Phpinfo ();
?>
Check session. save_path and check whether the modification is successful.
No modification is successful, but my php. ini
The file has been modified, but why is it unsuccessful?
The php. ini you modified is not the php. ini used by php. ini (you can see it in the phpinfo () report)
Or your system has the forced backup recovery function.
The php. ini you modified is not the php. ini used by php. ini (you can see it in the phpinfo () report)
Or your system has the forced backup recovery function.
In phpinfo, you can see: Loaded Configuration File/etc/php. ini, which is the php. ini File I modified.
Check whether your modified php. ini File is the Loaded Configuration File in phpinfo.
If it is not, it is to correct the error.
Modify the php. ini File in Loaded Configuration File.
Modify the php. ini File in Loaded Configuration File.
The above is indeed the php. ini here.
Have you restarted?
Phpinfo ();
?>
Check session. save_path and check whether the modification is successful.