简体   繁体   English

服务器上会话变量的路径

[英]Path of session variables on server

How to get complete path of session variables stored on server in php. 如何获取存储在php服务器中的会话变量的完整路径。 Even though I used phpinfo() method,I could not find out. 即使我使用phpinfo()方法,也无法找到。

The $_SESSION variable storage is determined by PHP's session.save_path configuration. $ _SESSION变量存储由PHP的session.save_path配置决定。 Normally this is /tmp on a Linux/Unix PC. 通常,这是Linux / Unix PC上的/ tmp。 Use the phpinfo() function to view your particular settings : 使用phpinfo()函数查看您的特定设置:

check PHP documentation: 检查PHP文档:

http://us.php.net/manual/en/session.configuration.php#ini.session.save-path http://us.php.net/manual/zh-CN/session.configuration.php#ini.session.save-path

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM