PHP Session File Modification path

Source: Internet
Author: User

By default, PHP Sess_ files will be generated into the/tmp directory, 1 days will generate a lot of time, because the/TMP directory has other important files, so it looks uncomfortable. The specific change procedure is to find the php.ini file inside the
Session.save_path = "/tmp", change Save_path to the directory you want, and change the source files of php.ini when PHP is installed, and change the method. Finally, do not forget to give permissions to the changed directory, for example, the changed directory is/tmp/php.session, the command is chmod 777 php.session. Then restart the HTTPD service and the configuration path changes to the directory you want to store.

PHP Session File Modification path

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.