解决php中Cannot send session cache limiter 的问题的方法
2008-12-17 14:21
846 查看
今天在使用php 的session 的时候,出现了以前就遇见但是又解决不了的问题,在页面上出现如下提示:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:/php/code/admin.php:1) in E:/php/code/logolist/adminlogo.php on line 2
上网搜了一下,有人说是因为在session_start(); 语句之前有其他的html代码,但是我的session_start(); 已经在做前面了。
还有的说是因为没有设置session 保存路径,需要修改php.ini中的session.save_path = "C:/phpsession" [后边的路径自己设置,并且要保证存在。php.ini 文件一般应位于系统盘/Windows 目录下面]
但是我做如上设置之后还是会有这个提示。后来经过反复测试,终于解决问题。
解决办法:
修改php.ini中的session.auto_start = 0 为 session.auto_start = 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:/php/code/admin.php:1) in E:/php/code/logolist/adminlogo.php on line 2
上网搜了一下,有人说是因为在session_start(); 语句之前有其他的html代码,但是我的session_start(); 已经在做前面了。
还有的说是因为没有设置session 保存路径,需要修改php.ini中的session.save_path = "C:/phpsession" [后边的路径自己设置,并且要保证存在。php.ini 文件一般应位于系统盘/Windows 目录下面]
但是我做如上设置之后还是会有这个提示。后来经过反复测试,终于解决问题。
解决办法:
修改php.ini中的session.auto_start = 0 为 session.auto_start = 1
相关文章推荐
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent 错误解决方法
- 解决Cannot send session cache limiter - headers already sent问题
- 关于Cannot send session cache limiter - headers already sent错误解决方法 【转】
- Cannot send session cache limiter - headers already sent 的php错误怎么解决?
- 关于使用 session_start 出现的 Warning: session_start(): Cannot send sessioncache limiter - 问题的解决
- 关于Cannot send session cache limiter - headers already sent错误解决方法
- session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- 关于Cannot send session cache limiter - headers already sent错误解决方法
- 关于Cannot send session cache limiter - headers already sent错误解决方法
- Cannot send session cache limiter - headers already sent错误解决方法