Cakephp 3.x 如何获得 session_id
Cakephp 3.x how the get the session_id
在PHP中,要获取session id,我们必须这样使用:session_id();
如何在 Cakephp 中获取 id 3.x?
您可以按以下方式访问会话 ID,
$this->request->session()->id()
在PHP中,要获取session id,我们必须这样使用:session_id();
如何在 Cakephp 中获取 id 3.x?
您可以按以下方式访问会话 ID,
$this->request->session()->id()