首页 > 代码库 > undefined variable _session php

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