session_start(): Cannot send session cookie - |
||
---|---|---|
新进会员
注册日期:
2004/9/11 18:17 所属群组:
注册会员 帖子:
10
等级: 2; EXP: 0
HP : 0 / 25 MP : 3 / 118 |
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/maple/public_html/admin/index.php:1) in /home/maple/public_html/admin/index.php on line 61
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/maple/public_html/admin/index.php:1) in /home/maple/public_html/admin/index.php on line 61 为什么 我在本机上测试没有问题 ~穿到网络上就出现了~?
2005/3/6 14:17
|
|
工具箱 |
服务器上PHP环境变量没设置对 |
||
---|---|---|
Support Team
注册日期:
2005/2/16 18:13 来自 上海
所属群组:
注册会员 帖子:
90
等级: 8; EXP: 46
HP : 0 / 186 MP : 30 / 649 |
检查php.ini文件,查看里面session相关的变量设置是否正确,其存贮地址应该是一个现实存在的目录,而且保证有写入的权限。
另外,还要确认一点,linux(unix)环境和windows环境的目录地址的写法不同,不能搞混,linux通常是/tmp,windows下通常是c:\winnt\temp
2005/3/6 19:14
|
|
_________________
云山沧沧,江水泱泱。vim之风,山高水长…… |
||
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
网站管理员
注册日期:
2004/6/25 19:16 所属群组:
网站管理员 注册会员 Dev+Hack 帖子:
3789
等级: 46; EXP: 82
HP : 1145 / 1145 MP : 1263 / 6149 |
引文:
output started at /home/maple/public_html/admin/index.php:1 检查一下public_html/admin/index.php这个文件的开头没有空行空格之类
2005/3/6 22:40
|
|
_________________
XOOPS 技术问题请在论坛提问 -- |自由|开源|共享| |
||
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
新进会员
注册日期:
2004/9/11 18:17 所属群组:
注册会员 帖子:
10
等级: 2; EXP: 0
HP : 0 / 25 MP : 3 / 118 |
恩多了个空格~
去掉后又出现问题了 ~ Warning: Cannot modify header information - headers already sent by (output started at /home/maple/public_html/include/lib/user.class.php:60) in /home/maple/public_html/include/lib/user.class.php on line 48 Warning: Cannot modify header information - headers already sent by (output started at /home/maple/public_html/include/lib/user.class.php:60) in /home/maple/public_html/include/lib/user.class.php on line 49 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/maple/public_html/include/lib/user.class.php:60) in /home/maple/public_html/include/lib/user.class.php on line 25 user.class.php
2005/3/8 12:31
|
|
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
新进会员
注册日期:
2004/9/11 18:17 所属群组:
注册会员 帖子:
10
等级: 2; EXP: 0
HP : 0 / 25 MP : 3 / 118 |
2005/3/8 12:38
|
|
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
新进会员
注册日期:
2005/3/13 15:30 所属群组:
注册会员 帖子:
2
等级: 1; EXP: 2
HP : 0 / 0 MP : 0 / 2 |
这个问题可能是由于apache的设置引起的,把apache中的缓冲输出
选项打开就好了。 我前几天还碰到过,试试吧!
2005/3/13 15:51
|
|
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
Support Team
注册日期:
2004/7/21 23:29 所属群组:
注册会员 技术文档组 帖子:
78
等级: 7; EXP: 77
HP : 0 / 169 MP : 26 / 873 |
自己写的么?不错啊?鼓励!支持!源代码可以共享么?
2005/4/21 17:08
|
|
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
Support Team
注册日期:
2004/7/21 23:29 所属群组:
注册会员 技术文档组 帖子:
78
等级: 7; EXP: 77
HP : 0 / 169 MP : 26 / 873 |
不错!要是能和其他web程序融合就好了!
2005/4/21 17:14
|
|
工具箱 |
Re: session_start(): Cannot send session cookie - |
||
---|---|---|
新进会员
注册日期:
2004/9/11 18:17 所属群组:
注册会员 帖子:
10
等级: 2; EXP: 0
HP : 0 / 25 MP : 3 / 118 |
前几天进医院了55~
现在手上还缠着绷带 惨~ 有空在把他好好改改~ :)~
2005/4/25 12:25
|
|
工具箱 |