PHP errors with sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cvasasali
Forum Newbie
Posts: 1
Joined: Mon Sep 01, 2003 9:46 am

PHP errors with sessions

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

look here

viewtopic.php?t=1157

Mark
Post Reply