PHP “Warning: session_start()...” 的解决方法
2016-03-06 17:32
791 查看
最新PHP “Warning: session_start()...” 的解决方法以下是三零网为大家整理的最新PHP “Warning: session_start()...” 的解决方法的文章,希望大家能够喜欢!PHP “Warning: session_start()...” 的解决方法:
出现类似以下错误:
解决办法:
修改php.ini中的session.auto_start = 0 为 session.auto_start = 1
重启IIS调试!如果还提示以下类似的警告:
就是 session变量需要系统的临时空间
session.save_path = "设置一个有效文件夹的绝对路径"
(比如 session.save_path = "C:\WINDOWS\temp" )
session.save_path =前面的 “;”分号去掉另外编辑该文件夹的权限 添加EVERYONE 有写入修改权限即可!
转载来自:http://www.q3060.com/list3/list117/274.html
出现类似以下错误:
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 7Warning: Unknown(): open(C:/Program Files/php/sessiontemp\sess_0cde28de3ce1a2e2cc8e8723b5a40279, O_RDWR) failed: Permission denied (13) in Unknown on line 0Warning: 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调试!如果还提示以下类似的警告:
Warning: session_start() [function.session-start]: open(/tmp\sess_84cb589ea249708b09c3d5e6836fdd0d, O_RDWR) failed: No such file or directory (2) in E:\web\htdocs\111.php on line 9Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\web\htdocs\111.php:8) in E:\web\htdocs\111.php on line 9Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\web\htdocs\111.php:8) in E:\web\htdocs\111.php on line 9Warning: Unknown(): open(/tmp\sess_84cb589ea249708b09c3d5e6836fdd0d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 |
session.save_path = "设置一个有效文件夹的绝对路径"
(比如 session.save_path = "C:\WINDOWS\temp" )
session.save_path =前面的 “;”分号去掉另外编辑该文件夹的权限 添加EVERYONE 有写入修改权限即可!
转载来自:http://www.q3060.com/list3/list117/274.html
相关文章推荐
- 「Linux 中国」2018 微信文章排行榜
- 企业批量部署RealVNC远程控制软件
- 文章推荐系统(二)
- php错误提示failed to open stream: HTTP request failed!的完美解决方法
- 基于php的CMS中展示文章类实例分析
- PHP_NETWORK_GETADDRESSES: GETADDRINFO FAILED问题解决办法
- The remote procedure call failed and did not execute的解决办法
- 在WordPress中使用wp_count_posts函数来统计文章数量
- 文章推荐系统(三)
- linux下mysql提示"mysql deamon failed to start"错误的解决方法
- 一篇入门的php Class 文章
- 推荐文章系统(一)
- php实现检查文章是否被百度收录
- WordPress中重置文章循环的rewind_posts()函数讲解
- apache启动报错:httpd: apr_sockaddr_info_get() failed
- WordPress开发中用于获取近期文章的PHP函数使用解析
- WordPress中给文章添加自定义字段及后台编辑功能区域
- WordPress中用于获取文章信息以及分类链接的函数用法
- Rsync ERROR: auth failed on module解决方法