Apache/PHP 中会话文件的位置 [英] Location for session files in Apache/PHP
问题描述
在 Ubuntu 10.10 上安装 Apache/PHP 时会话文件的默认位置是什么?
默认 session.save_path
设置为 ""
这将评估您系统的临时目录.在 https://bugs.php.net/bug.php?id=26757 查看此评论 说明:
在即将发布的版本(原文如此)中,save_path 的新默认值将是空字符串,这会导致临时目录被探测.
您可以使用sys_get_temp_dir
返回临时文件使用的目录路径>
要查找当前会话保存路径,可以使用
请参阅此答案,了解此函数返回空字符串时的临时路径.
What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?
The default session.save_path
is set to ""
which will evaluate to your system's temp directory. See this comment at https://bugs.php.net/bug.php?id=26757 stating:
The new default for save_path in upcoming releaess (sic) will be the empty string, which causes the temporary directory to be probed.
You can use sys_get_temp_dir
to return the directory path used for temporary files
To find the current session save path, you can use
Refer to this answer to find out what the temp path is when this function returns an empty string.
这篇关于Apache/PHP 中会话文件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!