`

解决php中Cannot send session cache limiter 的问题的方法

 
阅读更多

升级php7.0后出现这个问题

修改php.ini中的session.auto_start = 0 为 session.auto_start = 1

 

升级最新的yii1.1.20也能解决此问题

而且yii1.1.20与php7.2兼容了

 

后续

auto_start=1

以后会导致yii里面设置的sessionName失效,结果就是会话无效。所以最好还是升级yii1.1.20

分享到:
评论

相关推荐

    php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法

    在windows下编程,当使用session_start()方法的时候,有时会报session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/...

    php session_start()关于Cannot send session cache limiter – headers already sent错误解决方法

    说是已经有输出,用编辑器打,前面明明什么都没有,原来在使用AJAX的 时候,也出现过这种情况,后来,把这个PHP文件放到linux中打开,会发现,在文件的最前面,会出现“锘 ”这样的一个字符(引号内),把它去掉以后...

    php session_start()出错原因分析及解决方法

    错误提示: Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent 原因:在session_start()之前如果有输出内容,会出错, 解决办法:在session_start()...

    php session 错误

    1. 错误提示 Warning: Cannot send session cookie – headers already sent Warning: Cannot send session cache limiter – headers already sent 分析及解决办法 这一类问题,的原因是你在程序中使用session_...

    PHP session_start()问题解疑(详细介绍)

    1.错误提示Warning: Cannot send session cookie – headers already sentWarning: Cannot send session cache limiter – headers already sent分析及解决办法这一类问题,的原因是你在程序中使用PHP session_start...

    PHP中header和session_start前不能有输出原因分析

    在http传输文本中,规定必须 header和content顺序必须是:header在前content在后,并且header的格式必须满足... 2、session开启是会隐含的触发是否用header(“Set-Cookie: sid=xxxxxx”),也就是其实还是一个隐式的head

    PHP会话处理的10个函数

    在PHP开发中,比起Cookie,Session 是存储在服务器端的会话,相对安全,并且不像 ...最好将这个函数置于最先,而且在它之前不能有任何输出,否则会报警,如:Warning: Cannot send session cache limiter – headers a

    蓝宝石留言本 v1.01.rar

    修正了在某些php版本会报Cannot send session cache limiter的warning的bug。 修正了某些php套件下如wampserver会报Undefined index,Undefined variable等提示的bug。 修改了留言本参数设定功能预览时留言的文字颜色...

    蓝宝石留言本 1.01.rar

    修正了在某些php版本会报Cannot send session cache limiter的warning的bug。 修正了某些php套件下如wampserver会报Undefined index,Undefined variable等提示的bug。 修改了留言本参数设定功能预览时留言的文字...

    PHP session常见问题集锦及解决办法总结

    Warning: Cannot send session cookie – headers already sent Warning: Cannot send session cache limiter – headers already sent 分析及解决办法 这一类问题,的原因是你在程序中使用...

    php.ini-development

    user_ini.cache_ttl = 300 ;;;;;;;;;;;;;;;;;;;; ; Language Options ; ;;;;;;;;;;;;;;;;;;;; ; Enable the PHP scripting language engine under Apache. ; http://php.net/engine engine = On ; This directive...

Global site tag (gtag.js) - Google Analytics