I'm having the following messages when i start a php page I'm constructing.
Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\fuchsmexico\default.php:5) in c:\program files\apache group\apache\htdocs\fuchsmexico\default.php on line 12
Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\fuchsmexico\default.php:5) in c:\program files\apache group\apache\htdocs\fuchsmexico\default.php on line 12
Starting session
My code is as follows
<?php
include('functions.php');
?>
<?php
global $LoginForm;
global $logged;
global $msg;
global $conn;
if (!$_SESSION[ON])
{session_start();
print "Starting session";
$_SESSION[ON]=true;
}
do_DBconnection();
if(!$_SESSION[FIRSTTIME])
{do_selectLanguage();
do_loginform();
print $LoginForm;
exit;}
print " session is ON:".$_SESSION[ON]."<br>";
print " sessionID:".session_id();
?>
What's happening ...?
el Quijote