lokesh_kumar_s Posted April 14, 2009 Share Posted April 14, 2009 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/n/e/l/nelgo1/html/xxx/secure/AddClient1.php:1) in /home/content/n/e/l/nelgo1/html/xxx/secure/AddClient1.php on line 1 my code is 1 <?php session_start(); 2 ob_start(); 3 ?> please give me a solution i am totally confused because all other forms are working fine this is the only form giving me the problem. Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/ Share on other sites More sharing options...
MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 make sure session_start(); is at the very top. I'm sure that isn't the real line 1 in your file lol. Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809396 Share on other sites More sharing options...
lokesh_kumar_s Posted April 14, 2009 Author Share Posted April 14, 2009 hi MasterACE14 , thank u for ur fast response , i am sure that the first line in my php file i.e., AddClient.php file is <?php session_start(); ob_start(); ?> ////from here u see other code///// Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809400 Share on other sites More sharing options...
MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 you're not including anything before session_start(); ? if that is on the first line and the very first thing in the file, then you shouldn't be getting that error at all. Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809403 Share on other sites More sharing options...
lokesh_kumar_s Posted April 14, 2009 Author Share Posted April 14, 2009 i am very sure about it <?php session_start(); ob_start(); ?> this is the first line in my file AddClient1.php and there is no any blanks no any includes also Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809405 Share on other sites More sharing options...
MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 is session_start(); called any where else in the file? Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809407 Share on other sites More sharing options...
lokesh_kumar_s Posted April 14, 2009 Author Share Posted April 14, 2009 Thanks MasterACE14 i solved the problem i edited the AddClient.php using another editor testPad it solved the problem.why this happens. Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809419 Share on other sites More sharing options...
PFMaBiSmAd Posted April 14, 2009 Share Posted April 14, 2009 You had something before the <?php tag (causing the output on line 1 of the file that the error was stating.) Link to comment https://forums.phpfreaks.com/topic/153989-solved-cannot-send-session-cache-limiter-headers-already-sent/#findComment-809651 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.