会话ID是空的,当我做:pr($this->Session);
我收到:CakePHP的会话ID空
SessionComponent Object
(
[__active] => 1
[__bare] => 0
[valid] => 1
[error] =>
[_userAgent] => 5343528de22b8a6d25e7fd391692c911
[path] => /profiles
[lastError] =>
[security] => medium
[time] => 800-452-3639
[sessionTime] => 800-452-3639
[cookieLifeTime] => 720000
[watchKeys] => Array
(
)
[id] =>
[host] => xyz.org
[timeout] =>
[enabled] => 1
)
我如何可以启用会话ID,或使会话ID?
谢谢伯吉斯,正是我需要的! – 2011-04-19 18:20:18
没问题!乐意效劳! – 2011-04-19 20:30:56
感谢'session_id()'。我无法在任何地方找到它。真的需要开始会话吗?它可能在我写入会话时自动启动? – 2014-04-25 18:36:26