[eluser]CroNiX[/eluser]
[quote author="Sudz" date="1364222841"]Hi,
You can use config class for storing application variable.
Setting item value
Code:
$this->config->set_item('item_name', 'item_value');
Getting item value
Code:
$your_variable = $this->config->item('item name');
[/quote]
That doesn't permanently save anything though. It's good until the next request to the server, where the config is reloaded from the saved config files.