Re: Newbie:Cannot send session cookie...
| From: | Teodor Cimpoesu | Date: | Sun, 04 Feb 2001 18:12:25 +0000 |
| Subject: | Re: Newbie:Cannot send session cookie... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38121@lists.php.net to get a copy of this message | ||
james wrote:
>
> 1. Cannot send session cookie - headers already sent by (output started at
> c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program
> files/apache group/apache/htdocs/index.php4 on line 11
>
> What does it mean?
>
> Any hints?
the error message is quite explicit. By the time it reaches the line 11
in index.php4
you already sent something to output, so if you have on index.php4:11
something like
header(), setCookie() or session_start() which imply sending a header,
is no longer
possible [ you cannot send a header after you already started sending
the body ].
>
> 2. Another problem:
>
> My htm page has two frames (left and right).
> I activate php4 script from button on left frame.
>
> Question: How can I print the result of query on the right frame?
<frame name="that_one_with_the_button" action="show.php"
target="left_frame_name">
...
-- teodor