View Full Version : Problem with PHP code or me

11-10-2011, 10:10 PM
Hi ,

I am having a problem with some code .. I am getting this error on the top of the page when browsing:

"Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/59/8551159/html/eswap/index.php:1) in /home/content/59/8551159/html/eswap/includes/session.php on line 30"


It wouldn't let me past all the code due to size..

Thankyou, Tim

11-10-2011, 10:27 PM
Move your session_start() (http://php.net/session_start) to the top of the page, or at least before you output anything.

11-11-2011, 03:26 PM
To add to the above, anything that relies on the use of cookies (which session start does) must be done before anything is sent to the browser. This includes whitespace before the <html> tag.

For more info, there is a link in my signature about this.