[eluser]PhilTem[/eluser]
For quickly fixing your code to not produce the session error, do the following:
Before the first echo, make
Replace every
with
Then, after you set the session, do
Code:
$this->output->set_output($content);
This way you don't need to massively alter your code.