Page 1 of 1

ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

Posted: 12/04/2011 9:57 am
by pammika
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\webboard\question_view.php:8) in C:\AppServ\www\webboard\question_view.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\webboard\question_view.php:8) in C:\AppServ\www\webboard\chksession.php on line 2

ควรไปแก้ไขที่ไหนช่วยบอกหน่อยนะค่ะ
ขอบคุณค่ะ

โค้ดที่ใส่ chksession.php

Code: Select all

<?
session_start();
$sess_userid=$_SESSION[sess_userid];
$sess_username=$_SESSION[sess_username];
if ($sess_userid<>session_id() or $sess_username=="") {
    header("Location: index.html");     exit();
} 
?>

Re: ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

Posted: 12/04/2011 1:40 pm
by mindphp