Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 /**
  * Resets the data of the class
  *
  * @internal
  *
  * @return void
  */
 public static function reset()
 {
     fSession::clear(__CLASS__ . '::');
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }
Ejemplo n.º 5
0
<?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);
}