Posted on Thursday 27th September 2 at 04:41 PM | |
Dalez Junior Member |
Hey i have a website (www.janda.x10hosting.com) and i have this user system on it and this message keeps coming up: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/dalez/public_html/us/login.php:5) in /home/dalez/public_html/us/login.php on line 53 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dalez/public_html/us/login.php:5) in /home/dalez/public_html/us/login.php on line 53 I don't kow how to fix it. Could anyone help? Thanks. |
Posted on Friday 28th September 200 at 11:11 AM | |
Phoenixx Newbie |
Place the code below on top of your page <?php ob_start(); //Output Buffering Allowed ?> It should work fine then |
Posted on Saturday 29th September 2 at 12:36 PM | |
Dalez Junior Member |
Now i get: Parse error: syntax error, unexpected T_STRING in /home/dalez/public_html/client/shop.php on line 53 .....:( |
Posted on Saturday 29th September 2 at 03:53 PM | |
Dalez Junior Member |
Oh wait, i got a different code.. but it still has: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dalez/public_html/client/shop.php:5) in /home/dalez/public_html/client/shop.php on line 53 At the top. |
Posted on Thursday 8th November 200 at 05:54 PM | |
darklight19 Active Member |
Sessions should always be at the top before any code. |
Posted on Monday 12th November 2007 at 07:05 PM | |
SkillMaster Senior Member |
are you using static includes? if you are on your main page add Code <?php include "config.php"; ob_start(); ?> and remove any other include "config.php"; and ob_start(); from any other pages that you might have it in. :) |