[eluser]GabrielGem[/eluser]
Greetings dear CI commumity ! I'm new here and have a question. I have a problem with session library.
First of all, I create new library with that easy code:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Auth{
function Auth()
{
$CI =& get_instance();
$CI->load->database();
$CI->load->library('session');
}
}
Then I write 'auth' variable to autoload, then open my index page and get this warnings:
Code:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at F:\web\domains\devtools\application\libraries\auth.php:1)
Filename: libraries/Session.php
Line Number: 416
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at F:\web\domains\devtools\application\libraries\auth.php:1)
Filename: libraries/Session.php
Line Number: 675
But... If I put this library in the project based on CI 2.1.2 this library initialized perfect! w/o any errors and warnings. My Auth library not working on 2.1.3
Please help.