Home  >  Article  >  Backend Development  >  joomla中直接使用session导致模板出错

joomla中直接使用session导致模板出错

WBOY
WBOYOriginal
2016-06-23 13:53:03835browse

在用户登陆时,除了默认的记录session信息外,自己加入了如下代码,



在此处打印$_SESSION可以得到值,但是下面调用的模板页面空白,
如果去掉那两行代码的话,模板页面可以正常显示,这是为什么呀,求大神解救!


回复讨论(解决方案)

php.ini中打开错误提示功能,设置 display_errors=On , 改完记得重启下apache。

然后再运行看有什么错误。

display_errors=On , 就是开启的状态,什么也不提示

把 session_start(); 注释掉看看

试了,还是一样的

这个问题解决了吗 我也想知道 .. 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn