protected function initVars()
	{
		if (empty($_SESSION['__ci_vars']))
		{
			return;
		}

		$current_time = time();

		foreach ($_SESSION['__ci_vars'] as $key => &$value)
		{
			if ($value === 'new')
			{
				$_SESSION['__ci_vars'][$key] = 'old';
			}
			// Hacky, but 'old' will (implicitly) always be less than time() ;)
			// DO NOT move this above the 'new' check!
			elseif ($value < $current_time)
			{
				unset($_SESSION[$key], $_SESSION['__ci_vars'][$key]);
			}
		}

		if (empty($_SESSION['__ci_vars']))
		{
			unset($_SESSION['__ci_vars']);
		}
	}
protected function initVars()
	{
		if (empty($_SESSION['__ci_vars']))
		{
			return;
		}

		$current_time = time();

		foreach ($_SESSION['__ci_vars'] as $key => &$value)
		{
			if ($value === 'new')
			{
				$_SESSION['__ci_vars'][$key] = 'old';
			}
			// Hacky, but 'old' will (implicitly) always be less than time() ;)
			// DO NOT move this above the 'new' check!
			elseif ($value < $current_time)
			{
				unset($_SESSION[$key], $_SESSION['__ci_vars'][$key]);
			}
		}

		if (empty($_SESSION['__ci_vars']))
		{
			unset($_SESSION['__ci_vars']);
		}
	}
protected function initVars ( ) { if ( empty ( $ _SESSION [ '__ci_vars' ] ) ) { return ; } $ current_time = time ( ) ; foreach ( $ _SESSION [ '__ci_vars' ] as $ key => & $ value ) { if ( $ value === 'new' ) { $ _SESSION [ '__ci_vars' ] [ $ key ] = 'old' ; } // Hacky, but 'old' will (implicitly) always be less than time() ;) // DO NOT move this above the 'new' check! elseif ( $ value < $ current_time ) { unset ( $ _SESSION [ $ key ] , $ _SESSION [ '__ci_vars' ] [ $ key ] ) ; } } if ( empty ( $ _SESSION [ '__ci_vars' ] ) ) { unset ( $ _SESSION [ '__ci_vars' ] ) ; } }
Handle temporary variables

Clears old "flash" data, marks the new one for deletion and handles
"temp" data deletion.
Handle temporary variables