2
我正在使用Zend Framework和Zend_Session爲我的應用程序執行全局會話管理。我打算清除註銷所有會話,因此我用下面的代碼:
if($this->sessionExists())
{
$this->destroy();
}
但現在看來似乎不是做得不好..我得到一個錯誤:
PHP Warning: session_destroy() [<a href='function.session-destroy'>
function.session-destroy</a>]: Trying to destroy uninitialized session
哪有我擺脫了這個錯誤?有沒有替代sessionExists()?