本文整理匯總了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();
}