Hi,
I am getting these errors :
Here are lines 40 to 46 :Code:Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/box/public_html/im/launch.php:29) in /home/box/public_html/im/launch.php on line 40 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/box/public_html/im/launch.php:29) in /home/box/public_html/im/launch.php on line 40 Warning: Cannot modify header information - headers already sent by (output started at /home/box/public_html/im/launch.php:29) in /home/box/public_html/im/launch.php on line 42 Warning: Cannot modify header information - headers already sent by (output started at /home/box/public_html/im/launch.php:29) in /home/box/public_html/im/launch.php on line 43
Can anyone please tell me what is wrong with the following error, thank you.Code:session_start(); $_SESSION['sid'] = "sid"; setcookie("sid", sid, time()+3600); setcookie("sid", $_GET["uname"], time()+3600); $CheckInTime = Time(); $query="INSERT INTO `NetImOn` (`U_Name`, `LoginTime`, `SessionId`) VALUES ('".$_GET["uname"]."', '".$CheckInTime."', '".session_id()."')" or die(mysql_error()); mysql_query($query);
Jf3000


Reply With Quote
Bookmarks