What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?
What is the default location of session files on an installation of Apache/PHP on
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default
session.save_pathis set to""which will evaluate to your system’s temp directory. See this comment at https://bugs.php.net/bug.php?id=26757 stating:You can use
sys_get_temp_dirto return the directory path used for temporary filesTo find the current session save path, you can use
session_save_path()— Get and/or set the current session save pathRefer to this answer to find out what the temp path is when this function returns an empty string.