Something wrong with Session library in CI 2.1.3

#1
[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 Sad

Please help.


Messages In This Thread
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 09:29 AM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 12:31 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 03:56 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 09:48 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 10:34 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.