Session file storage path

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.