Blogger Information
Blog 8
fans 0
comment 0
visits 12288
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
安装phpStudy后报错:Warning: session_start()...” 的解决方法
杨家二少
Original
1226 people have browsed it

最近小编在使用phpstudy的时候遇到以下报错:

Warning: session_start(): open(C:/Program Files/php/sessiontemp\sess_0cde28de3ce1a2e2cc8e8723b5a40279, O_RDWR) failed: Permission denied (13) in D:\home\400m\zmxxx\web\syssite\install\datainstall.php on line 7

Warning: Unknown(): open(C:/Program Files/php/sessiontemp\sess_0cde28de3ce1a2e2cc8e8723b5a40279, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:/Program Files/php/sessiontemp) in Unknown on line 0

 下面为大家提供我的解决方式:

第一种方法:

修改php.ini中的session.auto_start = 0 为 session.auto_start = 1

重启IIS调试!

第二种方法:

session.save_path = "设置一个有效文件夹的绝对路径" 
(比如 session.save_path = "C:\WINDOWS\temp" )
session.save_path =前面的 “;”分号去掉


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post