本文整理汇总了PHP中JApplication::logout方法的典型用法代码示例。如果您正苦于以下问题:PHP JApplication::logout方法的具体用法?PHP JApplication::logout怎么用?PHP JApplication::logout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JApplication
的用法示例。
在下文中一共展示了JApplication::logout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: logout
/**
* Logs-out the user
*
* @return void
*/
function logout()
{
// needed for IE6 to accept this anti-spam cookie in higher security setting:
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
// Perform CMS logout, which will destroy the session:
$this->_baseFramework->logout();
// Restart the session since it has been destroyed:
JFactory::getSession()->restart();
// Save the new session to storage:
$this->_baseFramework->checkSession();
}
示例2: logout
function logout()
{
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
// needed for IE6 to accept this anti-spam cookie in higher security setting.
$this->_baseFramework->logout();
}