I have developed a website on my laptop using php5 and recently moved it to a hosted environment. I now keep getting loads of errors around session handling such as "Cannot send session cache limiter - headers already sent". I corrected a few by removing spaces from the bottom of php scripts after the ?> php end command however they are everywhere and i never got any issues like this on my laptop. Both the laptop and the shared hosting environment are php5 but probably different versions. Any idea why this wasnt a problem on my laptop can I suppress this errors or something?
"headers have already been sent" means that output has been sent to the client. Cookies, meta data, sessions and things of that sort can not be modified after the output has already been sent. Make sure that anything which modifies it is before the first bit of output.
I tend to avoid sessions, they are too often unreliable, especially in larger environments that are not managed by pros.