php会话错误 [英] php session error

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

问题描述

我在php会话中遇到问题..

我的代码给出错误..

i我在下面给出了我的代码和错误消息..



我的代码: -

展开 | 选择 | Wrap | 行号

解决方案

Hi mishrarajesh44 ,

欢迎来到The Scripts。你错误地把你的问题放在PHP文章中,所以我把它移到PHP论坛,我相信你会得到更好的回复。

Motoma


< blockquote class =post_quotes>
注意:如果您使用的是基于cookie的会话,则必须在将任何内容输出到浏览器之前调用session_start()。



只需将session_start()添加到页面的第一行,然后再将任何内容输出到浏览器。

php.net session_start - Manual


删除这些代码的行:

展开 | 选择 | Wrap | 行号


i am facing problem in php session..
my code is giving error..
i am giving my code and error message below..


my code:-

Expand|Select|Wrap|Line Numbers

解决方案

Hi mishrarajesh44,
Welcome to The Scripts. You mistakenly placed your question in the PHP Articles, so I moved it to the PHP Forum where I am sure you will receive a better response.
Motoma


Note: If you are using cookie-based sessions, you must call session_start() before anything is outputted to the browser.

just add session_start() to the very first line of your page before anything is outputted to the browers.

php.net session_start - Manual


remove the lines with these code:

Expand|Select|Wrap|Line Numbers


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

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