CodeIgniter Forums
Session problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Session problem (/showthread.php?tid=33896)



Session problem - El Forum - 09-12-2010

[eluser]MWebber[/eluser]
Hi,
In my logout controller i receive this error:
Code:
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/xxx/xxx/xxx/system/libraries/Exceptions.php:166)

Filename: libraries/Session.php

Line Number: 662

i receive it when i execute the sess_destroy. is this bug or the problem is in my application
(i have checked all files for white spaces).

logout controller:
Code:
<?php
class Logout extends MY_Controller
{
    function index()
    {
        $this->session->sess_destroy();
    }
}



Session problem - El Forum - 09-12-2010

[eluser]WanWizard[/eluser]
Is that the only output you get?

output started at /home/xxx/xxx/xxx/system/libraries/Exceptions.php:166 indicates you have a PHP error that the Exceptions class was about to echo, it is that output that is triggering the warning.