會話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