unsider Posted February 25, 2008 Share Posted February 25, 2008 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/unsider/www/andy/main.php:9) in /home/unsider/www/andy/include/session.php on line 46 Can some explain to me what this warning means, or how to potientally how to fix it, or how to hide it? I will post code as soon as I understand why it's being caused, if necessary. Quote Link to comment Share on other sites More sharing options...
p2grace Posted February 25, 2008 Share Posted February 25, 2008 You need the session_start() declared before any other html code. It's usually best to put it at the very top of every page. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 25, 2008 Share Posted February 25, 2008 look at one of the pinned topics at the top of this board labeled 'HEADER ERRORS' Quote Link to comment Share on other sites More sharing options...
unsider Posted February 25, 2008 Author Share Posted February 25, 2008 Oh, maybe that's why, I had just moved it, I"m going to check that out. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 25, 2008 Share Posted February 25, 2008 Everybodies had the 'HEADERs ALREADY SENT' error one time or another. Even experienced coders will cause it once and a while when developing new code. Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 25, 2008 Share Posted February 25, 2008 were the code then it probly white spaces... <?php session_start();?> no white space..... <?php session_start(); ?> white space..... Quote Link to comment Share on other sites More sharing options...
Bauer418 Posted February 25, 2008 Share Posted February 25, 2008 were the code then it probly white spaces... <?php session_start();?> no white space..... <?php session_start(); ?> white space..... It isn't the whitespace inside the PHP that causes the error, because that whitespace is not sent to the browser. It is any output that the browser sees (spaces before opening PHP tags, echo/print statements, etc.). Quote Link to comment Share on other sites More sharing options...
unsider Posted February 25, 2008 Author Share Posted February 25, 2008 look at one of the pinned topics at the top of this board labeled 'HEADER ERRORS' Sorry. I'll make sure to check the boards before I ask common questions. and TOPIC SOLVED! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.