Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter

Welcome Login | Register

Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
  Forums Index
      » PHP Forums
        » » Help: Error Warning: session_start(): Cannot send session cache limiter



Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
Post Description:
Post Tags: help, error, warning, session, start, cannot, send, session, cache, limiter, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 1565 Times Since Thu Jul 20, 2006 1:11 pm Posted By john607 with 7 replies
Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
Hi,

I am getting the following error evey time I pull up my webpages

Error Warning: session_start(): Cannot send session cache limiter - headers already sent

Whats going on?


Leave Your Comments






Share
HTML Link:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter




:: 1 :: #20 - Reply By john607 On Thu Jul 20, 2006 1:15 pm
Can you please provide a copy of your code. Particularly the first 25 lines of code

Thanks
:: 2 :: #21 - Reply By john607 On Thu Jul 20, 2006 1:20 pm
This are the first lines of code in my index.php file



     Code:

<?php
########################
# DEFAULT PAGE
########################
if ($pager==""){$pager=135;}

This is the code from my index.php file


########################
# DEFAULT category
########################
if ($category==""){$category=11;}



session_start();
include("config.php");
include("dbx.php");
include("includes/functions.php");

include("common.php");
include("ip_trck.php");

include("ip_blk.php");
:: 3 :: #22 - Reply By john607 On Thu Jul 20, 2006 1:22 pm
We found your problem.

You need to delete the first line right before "<?php" on line 2.
You CANNOT send anything to the browser before the headers. In this case your seesion() function. To fix this error, just delete line 1 entirely.
:: 4 :: #23 - Reply By john607 On Thu Jul 20, 2006 1:26 pm
:lol: IT WORKED!!!! :lol:

Thanks guys!

I removed the first line before the <?php and it worked great. I am not getting that annoying error anymore. I dont know what happened, my script was working fine, and all of the sudden it stop working and giving me this error message. I must have pressed returned before the <?php. I learned something new today.

Many Thanks for your support Webune!!!
:: 5 :: #3347 - Reply By makali On Thu May 17, 2007 7:21 pm
you should always put session_start(); at the very begining of your code. sometimes if you put it after any other command, you will get this error. so its best that you session_start() right after you start your php. session_start() should be your fist command in your code. try that.
:: 6 :: #49410 - Reply By Seyi Babs On Thu Apr 10, 2008 12:54 am
i want to used this medium and opportunity to thank those individuals that have been taking their time and effort to read people's questions and proffering answers. you guys are great, keep it up. i had a similar problem with the session in one of my php pages. although when i run the script in my local server, it does not present any bugs, but on my remote webserver, it does show "error warning: session_start(): cannot send session cache limiter - headers already sent". it was hard deciphering what the problem was, until i took the error message and do a search on it in google. one of the links google gave me landed me in this website. luckily for me, i took your suggestion and it worked. thank you so much.

:: 7 :: #56919 - Reply By todaystopjobs On Sat Jun 07, 2008 7:07 pm
i totally screwed up my website, and i am not good with code. i am just beginning with webdevelopment. this worked great! thank you