|
-- Posted by Seanee at 10:27 am on Oct. 29, 2007
WTF is this all about? Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sean/public_html/index.php:11) in /home/sean/public_html/users/include/session.php on line 46
-- Posted by derailedjet at 10:47 am on Oct. 29, 2007
I'm not terribly familiar with the inner workings of a PHP server, however, this is only a warning and not an error. It sounds like it was something that just came up because some built in thing called the session cache limiter could not start up. I would try refreshing the page a little while later and trying again.
-- Posted by OnOnE353 at 10:48 am on Oct. 29, 2007
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file. Let me know if that helps. And, PM me if you need anymore.
-- Posted by The Dalai Lama at 1:13 pm on Oct. 29, 2007
Just means that you placed that header:location thing too far into the script. The website had already sent to the information to the browser so it's not able to do it again.
-- Posted by allsmiles at 1:40 pm on Oct. 29, 2007
Just make session_start() the first command in your script. It's pointless having it anywhere else, really, and doing so would resolve thwe problem.
-- Posted by WigAOK9 at 2:36 pm on Oct. 29, 2007
The last few replies are correct, it seems. You need to move the session coding back up to the top or you are trying to send the same session code twice and need to stop the second copy.
-- Posted by OnOnE353 at 3:26 pm on Oct. 29, 2007
I told him to try moving the session_start(); just under
-- Posted by pleaseremove at 7:47 am on Oct. 30, 2007
Can you show us a copy of all of the file you are working on. Or at least all the lines up until where you start the session.
|