public static function regenerate() {
		if(isset($_SESSION['dachi_closed']) && $_SESSION['dachi_closed'] == true)
			return false;

		$_SESSION['dachi_closed'] = true;
		$_SESSION['dachi_expires'] = time() + 10;

		session_regenerate_id(false);

		$new_session = session_id();
		session_write_close();

		session_id($new_session);
		session_start();

		unset($_SESSION['dachi_closed']);
		unset($_SESSION['dachi_expires']);
	}