Welcome Guest, Not a member yet? Register   Sign In
Session problem
#1

[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();
    }
}
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB