undefined variable _session php

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了undefined variable _session php相关的知识,希望对你有一定的参考价值。

解决方法:

if (version_compare(php_VERSION, ‘5.4.0‘, ‘<‘)) {
if(session_id() == ‘‘) {session_start();}
} else {
if (session_status() == PHP_SESSION_NONE) {session_start();}
}




以上是关于undefined variable _session php的主要内容,如果未能解决你的问题,请参考以下文章

php出错提示Undefined variable

php 中的Undefined variable:

matlab 运行m文件 Undefined function or variable

eclipse报错“Undefined variable from import: ...”解决方案

如何修复Laravel 5.2中的“Undefined variable:subtask”

解决Undefined variable: HTTP_RAW_POST_DATA in.....的问题