Page 1 of 1

Problem with sessions

Posted: Wed Apr 23, 2003 10:53 am
by leebies
Hello people,

I hope all are well. I am getting this error message:
Warning: Cannot send session cache limiter - headers already sent (output started at /home/childc/public_html/news/news.php:26) in /home/childc/public_html/functions/sessions.php on line 13
On some of my pages. Have you any ideas? They are pages seperate from the program I created (http://www.childcarejobs.co.uk). But I use the same header files.

Hope you can help. Cheers - Leebies :)

Posted: Wed Apr 23, 2003 11:36 am
by twigletmac
Have a read of viewtopic.php?t=1157 - there needs to be no output to the browser before the call to session_start(). Generally if you can make session_start() the first line in the script you shouldn't have this problem.

Mac

Solved

Posted: Thu Apr 24, 2003 2:30 am
by leebies
Thanks. I didnt realise that an empty line before the session classed as a output! But from now on I must remember to make sure there is no gap! Cheers