方式一:
$session_id = $_COOKIE['PHPSESSID'];
方式二:
session('');
$session_id = session_id();
方式三:
$config = \think\Config::get('session');
\think\Session::init($config);
$session_id = session_id();
方式一:
$session_id = $_COOKIE['PHPSESSID'];
方式二:
session('');
$session_id = session_id();
方式三:
$config = \think\Config::get('session');
\think\Session::init($config);
$session_id = session_id();