CodeIgniter Forums
session Error - 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 Error (/showthread.php?tid=49254)



session Error - El Forum - 02-13-2012

[eluser]Bigil Michael[/eluser]
while running the project as localhost[ in my local machine] it shows a warning like this

Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\classic\system\libraries\Exceptions.php:164)

Filename: libraries/Session.php

Line Number: 662

in server it runs fine. no session warning.

i checked each and every pages of my code, is there any white space before <?php or after ?>
everything is fine.
my project will become live very soon. so i fear that is this code generate any session warning in server.
if it generate any problem my project will cancel...

so i am in big trouble can anyone help me????
thanks in advance..........



session Error - El Forum - 02-13-2012

[eluser]smilie[/eluser]
Well, warning above still means you are echo-ing something / somewhere.

Reason that on your production you do _not_ see this error, is because most of production system supress (do not show) warning and information messages, only errors;

So, look you code once more and check where you are sending output to browser.

Cheers,
Smilie


session Error - El Forum - 02-13-2012

[eluser]InsiteFX[/eluser]
In your PHP code do not include the ending php tag ?> only in your html documents do you need it.

Make sure your files are not saved with the BOM also.