1
我在我的应用程序中设置cookie, 我想在找到安全的HTTPS chanel时销毁旧的cookie。 这是我用来销毁会话cookieZend2销毁SessionCookie
if($cookie['secure'] == 1 && isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
{
\Zend_Session::destroy(true);
return $this->redirect()->toRoute('main_login');
}
的代码,但它给我的空白页,而会话没有破坏。
你确定这是ZF2 ? – peterpeterson 2014-09-03 16:27:13
\ Zend_Session :: destroy(true); 这个语法用于zend框架1,我需要在zend2中销毁会话cookie,请帮忙 – 2014-09-04 06:10:28