Page 1 of 1

PHP errors with sessions

Posted: Mon Sep 01, 2003 9:46 am
by cvasasali
What do these errors mean and how do I fix them?
Please help

1. Warning: Cannot send session cookie - headers already sent by (output started at c:\phpdev\www\s\login0.php:17) in c:\phpdev\www\s\login0.php on line 55

2. Warning: Cannot send session cache limiter - headers already sent (output started at c:\phpdev\www\s\login0.php:17) in c:\phpdev\www\s\login0.php on line 55


( Lines 13 to 33 are as follow)

<TR>
<TD colSpan=2 bgcolor="#336699" height="15">
<P align=center>&nbsp;</P></TD></TR>
<TR>
<TD width="20%" bgcolor="#336699">
<IMG hspace=7
src="aaa" width=146 align=middle></TD>
<TD>
<P align=center><IMG hspace=1 src="aaa" ></P> </TD></TR>
<TR>
<TD bgcolor="#336699">
<center>
<SPAN style="FONT-SIZE: 9pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"><FONT color=#ffffff><b>

<?php
$today = getdate();
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
echo "$month $mday, $year";
?>



(Lines 52 to 58 are as follow)

<?php require_once('Connections/Local.php'); ?>
<?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING']!="") $FF_LoginAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];


Thanks
CV

Posted: Mon Sep 01, 2003 9:55 am
by JayBird
look here

viewtopic.php?t=1157

Mark