コード例 #1
0
 /**
  * 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
0
ファイル: fSessionTest.php プロジェクト: philip/flourish
 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
0
 /**
  * Resets the data of the class
  *
  * @internal
  *
  * @return void
  */
 public static function reset()
 {
     fSession::clear(__CLASS__ . '::');
 }
コード例 #4
0
ファイル: fRequest.php プロジェクト: hibble/printmaster
 /**
  * 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
0
ファイル: logout.php プロジェクト: daerduoCarey/xiaoyou
<?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);
}