[eluser]marcopolo[/eluser]
The problem is each time you reload a page and ask for a variable
Code:
$this->config->item('variable');
you are getting the value from the file config.php (by default) even you have changed dinamically with set_item.
You need a function like write_config() to write the values into the file to get access next time you ask for them.