Forums
This topic is locked
Warning: Cannot send session cache limiter - heade
Posted 07 Feb 2002 10:29:03
1
has voted
07 Feb 2002 10:29:03 web warrior posted:
Hello,I'm including the UD login user using a php include file.
I've put this in the "header"of the site so on every page there is a small login form at the top . (this hides when user is logged and shows the logged in user)
The login works fine, but as soon as I include it in another page I get this error :
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/shop/index.php:97) in /var/www/html/inc/mainheader.php on line 11
Can't figure this out <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Lars J.
Replies
Replied 07 Feb 2002 11:22:55
07 Feb 2002 11:22:55 Bruno Mairlot replied:
Basically, this is due to something that is not always easy to track...
Somehow, your page contains some chars that are sent to the browser before you set the session cache limiter.
Most often, it may comes because you have a single empty line at the very beginning of your file.
Try to make sure that there is no line at all before your very first <?php tag.
--- Better to die trying, than never try at all ---
Somehow, your page contains some chars that are sent to the browser before you set the session cache limiter.
Most often, it may comes because you have a single empty line at the very beginning of your file.
Try to make sure that there is no line at all before your very first <?php tag.
--- Better to die trying, than never try at all ---
Replied 09 Feb 2002 18:26:19
09 Feb 2002 18:26:19 web warrior replied:
Thankz,
In my case (page with 2 php includes), I can see where the problem is coming from
In the index page I include a header page, and in that header I include the login form. Will have to do this differently..
Lars J.
In my case (page with 2 php includes), I can see where the problem is coming from
In the index page I include a header page, and in that header I include the login form. Will have to do this differently..
Lars J.