Page 1 of 1

Someone help...error posted

Posted: Sat Nov 23, 2002 11:56 pm
by rathlon
Warning: Cannot send session cookie - headers already sent by (output started at d:\web.root\xx_db\view_module.php:9) in d:\web.root\xx_db\view_module.php on line 108

here is my code:

$title = $row[$k];

session_start();
$ses_title = $title;
session_register("ses_title");

This should be pretty easy...what am I doing wrong?

Posted: Sun Nov 24, 2002 12:51 am
by mydimension
well, therror spells it out. you are outputting something to the client before you start the session. what do you have preceeding this code?

Posted: Sun Nov 24, 2002 12:52 am
by volka
please read this thread: Sticky: Before Post Read: Warning: Cannot add header information
it applies to cookies as well as they are shipping within the response headers