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