Home > Backend Development > PHP Tutorial > 找不到sesiion文件,该如何解决

找不到sesiion文件,该如何解决

WBOY
Release: 2016-06-13 12:07:50
Original
965 people have browsed it

找不到sesiion文件
/***sesiion1.php****/
session_start();
$_SESSION['name']="aaa";
echo "保存OK!保存到C:/Windows/Temp";
?>
/***sesiion2.php***/
session_start();
echo"

";<br>		print_r($_SESSION);<br>		echo"
Copy after login
";
?>
配置文件的更改如下:
; does not overwrite the process's umask.
session.save_path = "F:/Apache HTTP Server/tmp"

; Whether to use cookies.
session.use_cookies = 1

因为我用的appserv-win32-2.5.9集成环境,不是自己配置的环境,所以我的有php.ini-dist  和php.ini-recommend,两个文件里面的路径我都改成上面那样了。当我运行sesiion1.php过后,再运行sesiion2.phpd时候,却是多出来了aaa, 但是我在F盘的tmp目录下没有看到任何文件出现,我查看默认的C盘windows/Temp下 也没有任何文件,我是新手,求大家指教一下,谢谢!!
------解决思路----------------------
要查看session_save_path,可以写一个php
phpinfo();
?>
运行后查看:session.save_path就知道了。
------解决思路----------------------
print_r(glob(session_save_path() . '/sess*'));
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template