我可以修复此会话启动错误 [英] I can i fix this session start error

查看:59
本文介绍了我可以修复此会话启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白这些错误,我也可以解决它。

这是错误 - 错误:警告:session_start()[function.session-start]:无法发送会话缓存限制器 - 已在第4行的/home/alinkene/public_html/user.php中发送(已在/home/alinkene/public_html/simpleimage.php:66开始输出)标题

I do not understand these error and also i can i fix it.
This is the error- error:warning: session_start()[function.session-start]:cannot send session cache limiter - header already sent (output started at /home/alinkene/public_html/simpleimage.php:66) in /home/alinkene/public_html/user.php on line 4

展开 | 选择 | Wrap | 行号

推荐答案

要使用PHP脚本的会话,必须放入session_start();代码。
To use sessions with PHP scripts, you must put session_start(); into your code.
展开 | 选择 < span class =codeDivider> | Wrap | 行号


我包含了session_start();在我的代码第4行得到错误我忘了把它当我发布我的问题我怎么能检查我的网站服务器php配置是否设置允许会话我需要你告诉我如何如果没有设置我怎么能设置它。
I included session_start(); in my code in line 4 when got the error i forgot put it when i was posting my question how can i check if my website server php config is set to allow session i need you to show me how and if not set how can i set it.


@ simon2x1


这意味着您在session_start之前发送内容(图片?)( ) 叫做。这会导致错误。
@simon2x1
that means that you send content (an image?) before session_start() is called. which causes the error.


这篇关于我可以修复此会话启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆