本文整理汇总了PHP中fSession::clear方法的典型用法代码示例。如果您正苦于以下问题:PHP fSession::clear方法的具体用法?PHP fSession::clear怎么用?PHP fSession::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fSession
的用法示例。
在下文中一共展示了fSession::clear方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: reset
/**
* Resets the configuration and data of the class
*
* @internal
*
* @return void
*/
public static function reset()
{
fSession::clear(__CLASS__ . '::');
self::$loaded_values = array();
self::$row_number = 1;
self::$search_values = array();
self::$sort_column = NULL;
self::$sort_direction = NULL;
}
示例2: testClear
public function testClear()
{
fSession::open();
$_SESSION['delete'] = 1;
$_SESSION['delete_3'] = 2;
$_SESSION['delete_test'] = 3;
$_SESSION['non_delete'] = 4;
fSession::clear('delete');
$this->assertEquals(array('fSession::type', 'fSession::expires', 'non_delete'), array_keys($_SESSION));
}
示例3: reset
/**
* Resets the data of the class
*
* @internal
*
* @return void
*/
public static function reset()
{
fSession::clear(__CLASS__ . '::');
}
示例4: reset
/**
* Resets the configuration and data of the class
*
* @internal
*
* @return void
*/
public static function reset()
{
fSession::clear(__CLASS__ . '::');
self::$backup_files = NULL;
self::$backup_get = NULL;
self::$backup_post = NULL;
self::$backup_put_delete = NULL;
self::$put_delete = NULL;
}
示例5:
<?php
include_once __DIR__ . '/inc/init.php';
$back_url = fRequest::get('back');
fAuthorization::destroyUserInfo();
fSession::clear();
if (empty($back_url)) {
fURL::redirect(SITE_BASE);
} else {
fURL::redirect($back_url);
}