PHP会话回声不工作? [英] PHP session echo not working?

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

问题描述

我有一个页面生成一个动态的$ _SESSION ['variable'],所以当你刷新页面时,会话每次都有一个不同的值(只是0-10的值)。但是,当我在Firefox中刷新页面,什么也没有显示,但在IE浏览器中工作正常。我也尝试在Opera中,但它也没有出现在那里。任何人都知道为什么它不呼应,是的,我的页面顶部session_start(),所以它应该工作...

>你有没有为firefox安装萤火虫?如果是这样,你有 firecookie插件



如果是这样,您应该看到PHPSESSID的存在。如果你没有看到任何cookies,那很可能是,这是你的问题。


I have a page that generates a $_SESSION['variable'] that is dynamic, so when you refresh the page the session has a different value everytime ( just a value of 0-10 ). But when I refresh the page in firefox, nothing shows up, but in IE it works fine. I also tried in Opera but it doesn't show up there either. Anyone know why it's not echoing, and yes I session_start() at the top of my page so it should work...

解决方案

Do you have firebug installed for firefox? If so, do you have the firecookie addon

If so, you should see the presence of PHPSESSID. If you don't see any cookies, then chances are, this is your issue.

这篇关于PHP会话回声不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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