Hi everyone,

I found that problem is not in session probem is that when i am login in one php page where i already used session but when i am doing login with login name and password . I have seen that when i am printing value login name and password after login page then it is showing value in IE but not in Mozilla Firefox.
Due to this i am getting different result in IE and Mozilla both having the same URL of site. means same page url

SO how i can sort out this problem . Please help me
Thanks,
Gagan

Without relevant code, it is next to impossible to know what is going wrong.

Without relevant code, it is next to impossible to know what is going wrong.

thanks for reply,
i am sending code of file myindex.php which is login page

**************myindex.php file***********

<?php 
session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/stylie.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
-->
</style>
</head>
<DIV class=statusmessage dir=ltr></DIV>
<script language="javascript">
<!--
function validate(form) 
{	if (form.user.value=="")
	{	alert("User Name cannot be blank. Please enter it.");
		form.user.focus(); return false;
	}
	if (form.password.value=="")
	{	alert("Password cannot be blank. Please enter it.");
		form.password.focus(); return false;
	}
	return true;
}
-->
</script>
<body>

<? include ("../includes/header.php"); ?>
<link href="../stylie.css" rel="stylesheet" type="text/css" />
<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="/img/topbeam.gif" width="725" height="21"></td>
  </tr>
  <tr>
    <td width="23" style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"><table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr><td width="189" valign="top" style="background-image:url(/img/side_nav.jpg)">
        <? include ("../includes/leftnav2.php"); ?></td>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="16%">&nbsp;</td>
                  <td  background="../images/BG.jpg"><table width="382" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="30">&nbsp;</td>
                        <td width="92%" height="30" align="left" valign="middle" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none; font-weight:bold; padding-left:8px; ">CLIENT LOGIN </td>
                        <td height="30">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="1" colspan="3" bgcolor="#dfdfe3"></td>
                      </tr>
                      <tr>
                        <td width="4%">&nbsp;</td>
                        <td ><TABLE dir=ltr cellSpacing=0 cellPadding=0 border=0 width="100%">
                            <TBODY>
                              <TR>
                                <TD class=clean><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                    <TBODY>
                                      <TR>
                                        <TD class=clean ></TD>
                                        <TD height="8"  dir=ltr></TD>
                                        <TD class=clean ></TD>
                                      </TR>
                                      <TR>
                                        <TD class=clean >&nbsp;</TD>
                                        <FORM action="login1.php" method="post" onSubmit="return validate(this)">
                                          <TD  dir=ltr width="100%">
                                              <INPUT type=hidden name=login>
                                              <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Username:</B></TD>
                                                    <TD bgcolor="#EAEBD9" ><INPUT class=inputbox1 maxLength=30 size=30 name=user type="text"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Password:</B></TD>
                                                    <TD bgcolor="#EAEBD9"><INPUT class=inputbox1 type=password maxLength=30 size=30 
                  name=password></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><!-- <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>. -->
                                                      &nbsp;
                                                      <input src="/login/images/lOGIN.jpg" type="image" value=Login name=login2 class="button"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><strong>If you are not a member, Contact Administrator </strong></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"></TD>
                                                  </TR>
                                                  <!-- <TR>
                <TD align=middle colSpan=2>If you are not a member, you can 
                  register <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>.</TD></TR> -->
                                                </TBODY>
                                            </TABLE></TD>
                                        </form>
                                        <TD class=clean >&nbsp;</TD>
                                      </TR>
                                    </TBODY>
                                </TABLE></TD>
                              </TR>
                              <TR>
                                <TD height="5" class=clean></TD>
                              </TR>
                            </TBODY>
                        </TABLE></td>
                        <td width="4%">&nbsp;</td>
                      </tr>
                  </table></td>
                  <td width="11%">&nbsp;</td>
                </tr>
              </table>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify"><br>
                <br>
              </p></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<? include ("../includes/footer.php"); ?>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

after doing login it jump to login1.php page and this is code of that file

******************login1.php file*********************

<?php
session_start(); 
include("application.php");
// Include the database connection details
require('dbConnection.php');
// Include common functions
require('commonFunc.php');
// Include the table handler class
require('dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler(); $dbObject->connect();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
.text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;}
.text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;}
-->
</style>

<link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
$query = mysql_query("SELECT * FROM user where userid='$loginId' and password='$password'"); 
if ($row1 = mysql_fetch_array($query, MYSQL_ASSOC))
{
$username = $row1['user'];
$password = $row1['password'];
if ($row1['isAdmin']=="Yes")
	{	
		$_SESSION["login"]="T";
		$_SESSION["admin"]="T";
		$_SESSION["userId"]=$loginId;
?>

<script type="text/javascript"> 

window.location="admin.php?login=T"; 

</script>

<?php
	}

else
	{

		$_SESSION["login"]="T";
		$_SESSION["admin"]="F";
		$_SESSION["userId"]=$loginId;
		$_SESSION['user'] = $row1['user'];
		$_SESSION['recNo'] = $row1['recNo'];
		$row1['recNo'] =$recNo;
		$_SESSION['parentCatNo '] = $row1['parentCatNo'];
	?>
	<script type="text/javascript"> 

window.location="hoa.php?login=T"; 

</script>
<?php
     }
}

else
{
	$_SESSION["login"]="F";
	?>
	<script type="text/javascript"> 

window.location="myindex.php?login=F"; 

</script>

<?php
}

?>
</body>
</html>

after that this is the code of hoa.php file in which i am fetching value from database but it is showing all value in IE but now showing all records in Mozilla firefox because it is taking value null of login name and pwd in Firefox . I am not understading what is going on . Please help me

This is code fot hoa.php which is showing differ informtion in both IE and Firefox.

*************hoa.php file*******************

<?php 
session_start(); // if no active session we start a new one
 $ses_id = session_id();    


if ($_SESSION["login"]!="T")
{
	  
	header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/myindex.php');
}  
header("Cache-control: private");
// Include the database connection details
require('dbConnection.php');
// Include common functions
require('commonFunc.php');
// Include the table handler class
require('dbHandler.class.php');
###########################################################
// Init and connect to database
$dbObject = new dbHandler(); $dbObject->connect();
$user = new dbHandler();
$user->connect();

 $userId=$_SESSION["userId"];
 $recNo=$_SESSION['recNo'];
 $parentCatNo =$_REQUEST["parentCatNo "];
$query = $user->SelectAndNext("SELECT * FROM user where userid='$userId'");
?>
<link href="/stylie.css" rel="stylesheet" type="text/css">
<link href="../stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<!--<SCRIPT language=JavaScript1.2 src="images/stmenu.js" type=text/javascript></SCRIPT>-->
<script language="javascript" src="images/stmenu.js" type=text/javascript></script>
</head>

<body>

<? include ("../includes/header.php"); ?>
		

<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="../img/topbeam.gif" width="725" height="21"></td>
  </tr> 
  <tr>
    <td width="23"  style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"> <table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr><td width="189" valign="top" style="background-image:url(/img/side_nav.jpg)">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><? include ("../includes/leftnav2.php"); ?></td>
  </tr>
</table>
</td>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          
              <tr>
                <td>&nbsp;</td>
                <td align="center"><br><?	 $userId=$_SESSION['userId'];
		$sqlQuery="SELECT * FROM user where userid='$userId'";
		$query1 = mysql_query($sqlQuery);
		if ($row = mysql_fetch_array($query1, MYSQL_ASSOC)) 
		{ echo "<b><FONT COLOR='#40692C'>Welcome : </b> <font color='red'><b>".$row[firstName]."</b></font></FONT>";  } ?> 
</td>
               <td>&nbsp;</td></tr>
              <tr>
                <td>&nbsp;<br></td>
                <td> <fieldset>  <legend><FONT SIZE="2" COLOR="#6F7542" face="verdana"><B><I>HomeOwner Details</I></B></FONT></legend><BR>
	<?php
$sqlQuery = "SELECT * FROM user where parentCatNo='".$recNo."' order by firstName ASC";
$selectedRecords = $dbObject->Select($sqlQuery);

// If no records selected, print message
if (!$selectedRecords)
{	echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td >There are no selected records</td></tr></table>"; }

while($row1=$dbObject->SelectNext())
{	// Find total products and subcategories in this category
  //$other=substr($row1['other'],40);
echo  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo " <tr><td width='3%'>&nbsp;</td>";
echo "<td width='38%' class='pophead'><strong>HomeOwner Name </strong></td>";
echo "<td width='30%' class='pophead'><strong>Unit # </strong></td>";
echo "<td width='29%'>&nbsp;</td></tr>";
echo "<tr><td class='blurb'>&nbsp;</td>";
echo "<td class='blurb'>".$row1[firstName]."</td>";
echo "<td class='blurb'>$row1[unit_no]</td>";
echo "<td class='blurb'>&nbsp;</td></tr>";
echo "<tr><td height='12' colspan='4'></td></tr>";
echo "<tr><td>&nbsp;</td><td class='pophead'><strong>First Notice </strong></td>";
/* echo "<td class='pophead'><strong>Foreclosure Notice </strong></td>"; */
echo "<td class='pophead'><strong>Claim Lien </strong></td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'>$row1[first_notice]</td>";
/* echo "<td class='blurb'>$row1[lien_notice]</td>"; */
echo "<td class='blurb'>$row1[claim_lien]</td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Foreclosure Notice </strong></td>"; 
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='blurb' colspan='3'>$row1[lien_notice]</td>";
echo "</tr><tr>";
echo "<td height='12' colspan='4'></td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Notes</strong></td>";
/* echo "<td class='pophead'><strong>Other</strong></td>"; */
echo "</tr>";
echo "<tr><td>&nbsp;</td>";
/* echo "<td class='blurb'>$row1[foreclose]</td>"; */
echo "<td class='blurb' colspan='3'>$row1[other] </td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'></td>";
echo "<td class='blurb'></td>";
echo "</tr>";
echo "<tr><td height='1' colspan='4' bgcolor='#999999'></td></tr>";
echo "<tr><td height='16' colspan='3' align='right'></td>";
echo "</table>";
}


echo "<table  width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='blurb' align='right'><a href='logout.php'><font color='red'><b>LOGOUT</b></font></a></td></tr>";
echo "</table>";
?>         
          </fieldset>   </td>
	      
           
               </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>

    </table>
      </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<?php include ("../includes/footer.php"); 
//session_unset();
session_destroy();
//$_SESSION = array();

?>    
              
<p>&nbsp;</p>
<p>&nbsp;</p>

If U want to see difference then pls click on this URL
http://www.warddamon.com/login/myindex.php
In IE and Firefox both as login name is scott and pwd is 1234
You will see different information in both browser. Please help me how i can see same records firefox as well as in IE . It is very urgent for me.
Thanks,
Gagan

Woah! I asked for relevant code, not the whole code. But anyway, You can proceed step by step to check what is actually happening. You can start off by echoing the mysql query to see what the query returns and then what values are being assigned to the session variables.
Strangely, when I login, Internet explorer says Welcome : Versailles where as Firefox says Welcome : Deutsche Bank .
I am stumped too!

Woah! I asked for relevant code, not the whole code. But anyway, You can proceed step by step to check what is actually happening. You can start off by echoing the mysql query to see what the query returns and then what values are being assigned to the session variables.
Strangely, when I login, Internet explorer says Welcome : Versailles where as Firefox says Welcome : Deutsche Bank .
I am stumped too!

Thanks for suggesting,
Yes U can see on the page in IE after login i am printing login name in hoa.php file Upper left cornor it is showing login name scott but in Firefox it is not showing means it is taking blank after login.
What can be the reason for this firefox is taking null value of login name . Please help me. I am so puzzled on this topic and i have done every efforts from my side. But i am unable to find the problem in code or elsewhere.Please please help me on this topic.

Thanks,
Gagan

Try replacing the image button with a submit button. If that solves the problem, then you know where the problem is.. :S If that doesn't fix the problem, then, we should wait for someone with eagle's eye to find where the problem is.

Try replacing the image button with a submit button. If that solves the problem, then you know where the problem is.. :S If that doesn't fix the problem, then, we should wait for someone with eagle's eye to find where the problem is.

I have done that i replaced image with login button but still the problem is same . have u seen the file myindex.php file is code right that there are some td and tr in capital . Is there can be any problem or submit button having value like login2 and we are just checking it like $_SESSION. Is this can be probem for firefox or not.

One thing in myindex.php page we have used input type hiidden element name login. If you have suggestion about this .Then please tell me . So that i can sort out. If you think problem is this. I have tried as u asked to do me ,Still it is not showing in firefox which record scott client have in database. That all are showing in IE . But in mozilla when it take null value in login name then it check any record have null login name in database that is Dutshe Bank entry so that is showing that entry which have null or blank login name.

IF you have any suggestion about this . Please help me .

If we will have to wait any another person who can solve our problem.
Thanks,
Gagan

I have done that i replaced image with login button but still the problem is same . have u seen the file myindex.php file is code right that there are some td and tr in capital . Is there can be any problem or submit button having value like login2 and we are just checking it like $_SESSION. Is this can be probem for firefox or not.

If we will have to wait any another person who can solve our problem.
Thanks,
Gagan

No.. td and tr is not the cause of your problem. I am trying to create the exact scenario and I see your problem.. The problem is with
window.location="hoa.php?login=T";
Internet explorer is able to retain the sessions while firefox is failing to. I am not sure why it (Firefox) is able to save certain session variables and not all.. To see what I am talking about, check these scripts.
This is myindex.php (Don't overwrite your file. This is just a dummy file, so save it in a new location).

<?php 
session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/stylie.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
-->
</style>
</head>
<DIV class=statusmessage dir=ltr></DIV>
<script language="javascript">
<!--
function validate(form) 
{	if (form.user.value=="")
	{	alert("User Name cannot be blank. Please enter it.");
		form.user.focus(); return false;
	}
	if (form.password.value=="")
	{	alert("Password cannot be blank. Please enter it.");
		form.password.focus(); return false;
	}
	return true;
}
-->
</script>
<body>

<link href="../stylie.css" rel="stylesheet" type="text/css" />
<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="/img/topbeam.gif" width="725" height="21"></td>
  </tr>
  <tr>
    <td width="23" style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"><table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="16%">&nbsp;</td>
                  <td  background="../images/BG.jpg"><table width="382" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="30">&nbsp;</td>
                        <td width="92%" height="30" align="left" valign="middle" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none; font-weight:bold; padding-left:8px; ">CLIENT LOGIN </td>
                        <td height="30">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="1" colspan="3" bgcolor="#dfdfe3"></td>
                      </tr>
                      <tr>
                        <td width="4%">&nbsp;</td>
                        <td ><TABLE dir=ltr cellSpacing=0 cellPadding=0 border=0 width="100%">
                            <TBODY>
                              <TR>
                                <TD class=clean><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                    <TBODY>
                                      <TR>
                                        <TD class=clean ></TD>
                                        <TD height="8"  dir=ltr></TD>
                                        <TD class=clean ></TD>
                                      </TR>
                                      <TR>
                                        <TD class=clean >&nbsp;</TD>
                                        <FORM action="login1.php" method="post" onSubmit="return validate(this)">
                                          <TD  dir=ltr width="100%">
                                              <INPUT type=hidden name=login>
                                              <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Username:</B></TD>
                                                    <TD bgcolor="#EAEBD9" ><INPUT class=inputbox1 maxLength=30 size=30 name=user type="text"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Password:</B></TD>
                                                    <TD bgcolor="#EAEBD9"><INPUT class=inputbox1 type=password maxLength=30 size=30 
                  name=password></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><!-- <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>. -->
                                                      &nbsp;
                                                      <input src="http://www.warddamon.com/login/images/lOGIN.jpg" type="image" value=Login name=login2 class="button"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><strong>If you are not a member, Contact Administrator </strong></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"></TD>
                                                  </TR>
                                                  <!-- <TR>
                <TD align=middle colSpan=2>If you are not a member, you can 
                  register <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>.</TD></TR> -->
                                                </TBODY>
                                            </TABLE></TD>
                                        </form>
                                        <TD class=clean >&nbsp;</TD>
                                      </TR>
                                    </TBODY>
                                </TABLE></TD>
                              </TR>
                              <TR>
                                <TD height="5" class=clean></TD>
                              </TR>
                            </TBODY>
                        </TABLE></td>
                        <td width="4%">&nbsp;</td>
                      </tr>
                  </table></td>
                  <td width="11%">&nbsp;</td>
                </tr>
              </table>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify"><br>
                <br>
              </p></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

This is login1.php

<?php
session_start(); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
.text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;}
.text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;}
-->
</style>

<link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
echo "SELECT * FROM user where userid='$loginId' and password='$password'";
//$query = mysql_query(); 
if (1==1) {
$username = $row1['user'];
$password = $row1['password'];
if ($abc=="Yes")
	{	
		$_SESSION["login"]="T";
		$_SESSION["admin"]="T";
		$_SESSION["userId"]=$loginId;
?>

<script type="text/javascript"> 

window.location="admin.php?login=T"; 

</script>

<?php
	}

else
	{

		$_SESSION["login"]="T";
		$_SESSION["admin"]="F";
		$_SESSION["userId"] = $loginId;
		$_SESSION['user'] = $row1['user'];
		$_SESSION['recNo'] = $row1['recNo'];
		$row1['recNo'] =$recNo;
		$_SESSION['parentCatNo '] = $row1['parentCatNo'];
	?>
	<script type="text/javascript"> 

window.location="hoa.php?login=T"; 

</script>
<?php
     }
}

else
{
	$_SESSION["login"]="F";
	?>
	<script type="text/javascript"> 

window.location="myindex.php?login=F"; 

</script>

<?php
}

?>
</body>
</html>

And this is hoa.php

<?php 
session_start(); // if no active session we start a new one

 print_r($_SESSION);
 $ses_id = session_id();    
 exit;


if ($_SESSION["login"]!="T")
{
	  
	header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/myindex.php');
}  
//header("Cache-control: private");


 $userId=$_SESSION["userId"];
 $recNo=$_SESSION['recNo'];
 $parentCatNo =$_REQUEST["parentCatNo "];
?>
<link href="/stylie.css" rel="stylesheet" type="text/css">
<link href="../stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<!--<SCRIPT language=JavaScript1.2 src="images/stmenu.js" type=text/javascript></SCRIPT>-->
<script language="javascript" src="images/stmenu.js" type=text/javascript></script>
</head>

<body>

<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="../img/topbeam.gif" width="725" height="21"></td>
  </tr> 
  <tr>
    <td width="23"  style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"> <table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr><td width="189" valign="top" style="background-image:url(/img/side_nav.jpg)">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
 </table>
</td>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          
              <tr>
                <td>&nbsp;</td>
                <td align="center"><br><?	 $userId=$_SESSION['userId'];
		$sqlQuery="SELECT * FROM user where userid='$userId'";
		echo "<br>".$sqlQuery."<br>";
		//$query1 = mysql_query($sqlQuery);
		?>
</td>
               <td>&nbsp;</td></tr>
              <tr>
                <td>&nbsp;<br></td>
                <td> <fieldset>  <legend><FONT SIZE="2" COLOR="#6F7542" face="verdana"><B><I>HomeOwner Details</I></B></FONT></legend><BR>
	<?php
$sqlQuery = "SELECT * FROM user where parentCatNo='".$recNo."' order by firstName ASC";
echo $sqlQuery;
// If no records selected, print message

while($i < 5)
{	// Find total products and subcategories in this category
  //$other=substr($row1['other'],40);
  $i++;
echo  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo " <tr><td width='3%'>&nbsp;</td>";
echo "<td width='38%' class='pophead'><strong>HomeOwner Name </strong></td>";
echo "<td width='30%' class='pophead'><strong>Unit # </strong></td>";
echo "<td width='29%'>&nbsp;</td></tr>";
echo "<tr><td class='blurb'>&nbsp;</td>";
echo "<td class='blurb'>".$row1[firstName]."</td>";
echo "<td class='blurb'>$row1[unit_no]</td>";
echo "<td class='blurb'>&nbsp;</td></tr>";
echo "<tr><td height='12' colspan='4'></td></tr>";
echo "<tr><td>&nbsp;</td><td class='pophead'><strong>First Notice </strong></td>";
/* echo "<td class='pophead'><strong>Foreclosure Notice </strong></td>"; */
echo "<td class='pophead'><strong>Claim Lien </strong></td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'>$row1[first_notice]</td>";
/* echo "<td class='blurb'>$row1[lien_notice]</td>"; */
echo "<td class='blurb'>$row1[claim_lien]</td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Foreclosure Notice </strong></td>"; 
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='blurb' colspan='3'>$row1[lien_notice]</td>";
echo "</tr><tr>";
echo "<td height='12' colspan='4'></td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Notes</strong></td>";
/* echo "<td class='pophead'><strong>Other</strong></td>"; */
echo "</tr>";
echo "<tr><td>&nbsp;</td>";
/* echo "<td class='blurb'>$row1[foreclose]</td>"; */
echo "<td class='blurb' colspan='3'>$row1[other] </td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'></td>";
echo "<td class='blurb'></td>";
echo "</tr>";
echo "<tr><td height='1' colspan='4' bgcolor='#999999'></td></tr>";
echo "<tr><td height='16' colspan='3' align='right'></td>";
echo "</table>";
}


echo "<table  width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='blurb' align='right'><a href='logout.php'><font color='red'><b>LOGOUT</b></font></a></td></tr>";
echo "</table>";
?>         
          </fieldset>   </td>
	      
           
               </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>

    </table>
      </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<?php
//session_unset();
session_destroy();
//$_SESSION = array();

?>    
              
<p>&nbsp;</p>
<p>&nbsp;</p>

If you see, I am printing out session variables in hoa.php . IE prints fine, where as firefox is unable to.
To fix it, I used ob_start() and header function in login1.php . So, here is the working code.
This is login1.php

<?php
ob_start();
session_start(); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
.text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;}
.text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;}
-->
</style>

<link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
echo "SELECT * FROM user where userid='$loginId' and password='$password'";
//$query = mysql_query(); 
if (1==1) {
$username = $row1['user'];
$password = $row1['password'];
if ($abc=="Yes")
	{	
		$_SESSION["login"]="T";
		$_SESSION["admin"]="T";
		$_SESSION["userId"]=$loginId;
?>

<script type="text/javascript"> 

window.location="admin.php?login=T"; 

</script>

<?php
	}

else
	{

		$_SESSION["login"]="T";
		$_SESSION["admin"]="F";
		$_SESSION["userId"] = $loginId;
		$_SESSION['user'] = $row1['user'];
		$_SESSION['recNo'] = $row1['recNo'];
		$row1['recNo'] =$recNo;
		$_SESSION['parentCatNo '] = $row1['parentCatNo'];
	header("location: hoa.php?login=T");
	?>
	<script type="text/javascript"> 

//window.location="hoa.php?login=T"; 

</script>
<?php
     }
}

else
{
	$_SESSION["login"]="F";
	?>
	<script type="text/javascript"> 

window.location="myindex.php?login=F"; 

</script>

<?php
}

?>
</body>
</html>

This is so strange! I don't understand why only some session variables work and some don't. :S

No.. td and tr is not the cause of your problem. I am trying to create the exact scenario and I see your problem.. The problem is with
window.location="hoa.php?login=T";
Internet explorer is able to retain the sessions while firefox is failing to. I am not sure why it (Firefox) is able to save certain session variables and not all.. To see what I am talking about, check these scripts.
This is myindex.php (Don't overwrite your file. This is just a dummy file, so save it in a new location).

<?php 
session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/stylie.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
-->
</style>
</head>
<DIV class=statusmessage dir=ltr></DIV>
<script language="javascript">
<!--
function validate(form) 
{	if (form.user.value=="")
	{	alert("User Name cannot be blank. Please enter it.");
		form.user.focus(); return false;
	}
	if (form.password.value=="")
	{	alert("Password cannot be blank. Please enter it.");
		form.password.focus(); return false;
	}
	return true;
}
-->
</script>
<body>

<link href="../stylie.css" rel="stylesheet" type="text/css" />
<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="/img/topbeam.gif" width="725" height="21"></td>
  </tr>
  <tr>
    <td width="23" style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"><table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="16%">&nbsp;</td>
                  <td  background="../images/BG.jpg"><table width="382" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="30">&nbsp;</td>
                        <td width="92%" height="30" align="left" valign="middle" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none; font-weight:bold; padding-left:8px; ">CLIENT LOGIN </td>
                        <td height="30">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="1" colspan="3" bgcolor="#dfdfe3"></td>
                      </tr>
                      <tr>
                        <td width="4%">&nbsp;</td>
                        <td ><TABLE dir=ltr cellSpacing=0 cellPadding=0 border=0 width="100%">
                            <TBODY>
                              <TR>
                                <TD class=clean><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                    <TBODY>
                                      <TR>
                                        <TD class=clean ></TD>
                                        <TD height="8"  dir=ltr></TD>
                                        <TD class=clean ></TD>
                                      </TR>
                                      <TR>
                                        <TD class=clean >&nbsp;</TD>
                                        <FORM action="login1.php" method="post" onSubmit="return validate(this)">
                                          <TD  dir=ltr width="100%">
                                              <INPUT type=hidden name=login>
                                              <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Username:</B></TD>
                                                    <TD bgcolor="#EAEBD9" ><INPUT class=inputbox1 maxLength=30 size=30 name=user type="text"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD bgcolor="#EAEBD9" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333333; text-decoration:none;"><B>Password:</B></TD>
                                                    <TD bgcolor="#EAEBD9"><INPUT class=inputbox1 type=password maxLength=30 size=30 
                  name=password></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><!-- <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>. -->
                                                      &nbsp;
                                                      <input src="http://www.warddamon.com/login/images/lOGIN.jpg" type="image" value=Login name=login2 class="button"></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"><strong>If you are not a member, Contact Administrator </strong></TD>
                                                  </TR>
                                                  <TR>
                                                    <TD height="12" colSpan=2 align=right style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666666; text-decoration:none;"></TD>
                                                  </TR>
                                                  <!-- <TR>
                <TD align=middle colSpan=2>If you are not a member, you can 
                  register <A 
                  href="#">here</A>.<BR><A 
                  href="#">Forgot 
                  your username or password?</A><BR><BR>Login problems? <A 
                  href="#">Reset 
                  the cookie used by this board</A>.</TD></TR> -->
                                                </TBODY>
                                            </TABLE></TD>
                                        </form>
                                        <TD class=clean >&nbsp;</TD>
                                      </TR>
                                    </TBODY>
                                </TABLE></TD>
                              </TR>
                              <TR>
                                <TD height="5" class=clean></TD>
                              </TR>
                            </TBODY>
                        </TABLE></td>
                        <td width="4%">&nbsp;</td>
                      </tr>
                  </table></td>
                  <td width="11%">&nbsp;</td>
                </tr>
              </table>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify">&nbsp;</p>
              <p class="blurb" style="margin: 10px 20px 10px 20px; text-align:justify"><br>
                <br>
              </p></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

This is login1.php

<?php
session_start(); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
.text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;}
.text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;}
-->
</style>

<link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
echo "SELECT * FROM user where userid='$loginId' and password='$password'";
//$query = mysql_query(); 
if (1==1) {
$username = $row1['user'];
$password = $row1['password'];
if ($abc=="Yes")
	{	
		$_SESSION["login"]="T";
		$_SESSION["admin"]="T";
		$_SESSION["userId"]=$loginId;
?>

<script type="text/javascript"> 

window.location="admin.php?login=T"; 

</script>

<?php
	}

else
	{

		$_SESSION["login"]="T";
		$_SESSION["admin"]="F";
		$_SESSION["userId"] = $loginId;
		$_SESSION['user'] = $row1['user'];
		$_SESSION['recNo'] = $row1['recNo'];
		$row1['recNo'] =$recNo;
		$_SESSION['parentCatNo '] = $row1['parentCatNo'];
	?>
	<script type="text/javascript"> 

window.location="hoa.php?login=T"; 

</script>
<?php
     }
}

else
{
	$_SESSION["login"]="F";
	?>
	<script type="text/javascript"> 

window.location="myindex.php?login=F"; 

</script>

<?php
}

?>
</body>
</html>

And this is hoa.php

<?php 
session_start(); // if no active session we start a new one

 print_r($_SESSION);
 $ses_id = session_id();    
 exit;


if ($_SESSION["login"]!="T")
{
	  
	header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/myindex.php');
}  
//header("Cache-control: private");


 $userId=$_SESSION["userId"];
 $recNo=$_SESSION['recNo'];
 $parentCatNo =$_REQUEST["parentCatNo "];
?>
<link href="/stylie.css" rel="stylesheet" type="text/css">
<link href="../stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<!--<SCRIPT language=JavaScript1.2 src="images/stmenu.js" type=text/javascript></SCRIPT>-->
<script language="javascript" src="images/stmenu.js" type=text/javascript></script>
</head>

<body>

<table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="../img/topbeam.gif" width="725" height="21"></td>
  </tr> 
  <tr>
    <td width="23"  style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td>
    <td width="679" bgcolor="#FFFFFF"> <table width="679" border="0" cellspacing="0" cellpadding="0">
      <tr><td width="189" valign="top" style="background-image:url(/img/side_nav.jpg)">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
 </table>
</td>
        <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="Client-Login.jpg" width="490" height="60"></td>
          </tr>
          <tr>
            <td style="background-image:url(../img/content_back.jpg)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          
              <tr>
                <td>&nbsp;</td>
                <td align="center"><br><?	 $userId=$_SESSION['userId'];
		$sqlQuery="SELECT * FROM user where userid='$userId'";
		echo "<br>".$sqlQuery."<br>";
		//$query1 = mysql_query($sqlQuery);
		?>
</td>
               <td>&nbsp;</td></tr>
              <tr>
                <td>&nbsp;<br></td>
                <td> <fieldset>  <legend><FONT SIZE="2" COLOR="#6F7542" face="verdana"><B><I>HomeOwner Details</I></B></FONT></legend><BR>
	<?php
$sqlQuery = "SELECT * FROM user where parentCatNo='".$recNo."' order by firstName ASC";
echo $sqlQuery;
// If no records selected, print message

while($i < 5)
{	// Find total products and subcategories in this category
  //$other=substr($row1['other'],40);
  $i++;
echo  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo " <tr><td width='3%'>&nbsp;</td>";
echo "<td width='38%' class='pophead'><strong>HomeOwner Name </strong></td>";
echo "<td width='30%' class='pophead'><strong>Unit # </strong></td>";
echo "<td width='29%'>&nbsp;</td></tr>";
echo "<tr><td class='blurb'>&nbsp;</td>";
echo "<td class='blurb'>".$row1[firstName]."</td>";
echo "<td class='blurb'>$row1[unit_no]</td>";
echo "<td class='blurb'>&nbsp;</td></tr>";
echo "<tr><td height='12' colspan='4'></td></tr>";
echo "<tr><td>&nbsp;</td><td class='pophead'><strong>First Notice </strong></td>";
/* echo "<td class='pophead'><strong>Foreclosure Notice </strong></td>"; */
echo "<td class='pophead'><strong>Claim Lien </strong></td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'>$row1[first_notice]</td>";
/* echo "<td class='blurb'>$row1[lien_notice]</td>"; */
echo "<td class='blurb'>$row1[claim_lien]</td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Foreclosure Notice </strong></td>"; 
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='blurb' colspan='3'>$row1[lien_notice]</td>";
echo "</tr><tr>";
echo "<td height='12' colspan='4'></td>";
echo "</tr><tr><td>&nbsp;</td>";
echo "<td class='pophead' colspan='3'><strong>Notes</strong></td>";
/* echo "<td class='pophead'><strong>Other</strong></td>"; */
echo "</tr>";
echo "<tr><td>&nbsp;</td>";
/* echo "<td class='blurb'>$row1[foreclose]</td>"; */
echo "<td class='blurb' colspan='3'>$row1[other] </td></tr>";
echo "<tr><td>&nbsp;</td>";
echo "<td class='blurb'></td>";
echo "<td class='blurb'></td>";
echo "</tr>";
echo "<tr><td height='1' colspan='4' bgcolor='#999999'></td></tr>";
echo "<tr><td height='16' colspan='3' align='right'></td>";
echo "</table>";
}


echo "<table  width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='blurb' align='right'><a href='logout.php'><font color='red'><b>LOGOUT</b></font></a></td></tr>";
echo "</table>";
?>         
          </fieldset>   </td>
	      
           
               </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td>
          </tr>
        </table></td>
      </tr>

    </table>
      </td>
    <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td>
  </tr>
</table>
<?php
//session_unset();
session_destroy();
//$_SESSION = array();

?>    
              
<p>&nbsp;</p>
<p>&nbsp;</p>

If you see, I am printing out session variables in hoa.php . IE prints fine, where as firefox is unable to.
To fix it, I used ob_start() and header function in login1.php . So, here is the working code.
This is login1.php

<?php
ob_start();
session_start(); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Login -  Ward, Damon and Posner, P.A.</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="/stylie.css" rel="stylesheet" type="text/css">
<LINK href="" type=text/css rel=stylesheet>
<LINK href="images/prov.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.inputbox {border:1px solid #dfdfe3}
.inputbox1 {border:1px solid #dfdfe3; height:22px;}
.text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;}
.text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;}
-->
</style>

<link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$loginId=$_REQUEST[user];
$password=$_REQUEST[password];
echo "SELECT * FROM user where userid='$loginId' and password='$password'";
//$query = mysql_query(); 
if (1==1) {
$username = $row1['user'];
$password = $row1['password'];
if ($abc=="Yes")
	{	
		$_SESSION["login"]="T";
		$_SESSION["admin"]="T";
		$_SESSION["userId"]=$loginId;
?>

<script type="text/javascript"> 

window.location="admin.php?login=T"; 

</script>

<?php
	}

else
	{

		$_SESSION["login"]="T";
		$_SESSION["admin"]="F";
		$_SESSION["userId"] = $loginId;
		$_SESSION['user'] = $row1['user'];
		$_SESSION['recNo'] = $row1['recNo'];
		$row1['recNo'] =$recNo;
		$_SESSION['parentCatNo '] = $row1['parentCatNo'];
	header("location: hoa.php?login=T");
	?>
	<script type="text/javascript"> 

//window.location="hoa.php?login=T"; 

</script>
<?php
     }
}

else
{
	$_SESSION["login"]="F";
	?>
	<script type="text/javascript"> 

window.location="myindex.php?login=F"; 

</script>

<?php
}

?>
</body>
</html>

This is so strange! I don't understand why only some session variables work and some don't. :S

Thanks sir for giving so much help , i will try this code today . If it will not work , i will tell you.
regards,
gagan

Thanks sir for giving so much help. I have used code suggested by you. But the problem is same as we are printing print_r($_SESSION); in hoa.php file
This is giving different output in both mozilla firefox and IE .
It is giving output in IE Array ( [login] => T [admin] => F [userId] => scott [user] => [recNo] => [parentCatNo ] => ) and it is giving output in firefox Array ( [login] => T [admin] => F [userId] => [user] => [recNo] => [parentCatNo ] => ) As you will see in both of these when we are printing $session we have seen it is not showing user scott in case of firefox . As I think so it means it is not creating session in firefox. Please suggest me how i can solove this problem. I want to complete this work. Because it is very urgent.

Thanks,
gagan

Did you try using ob_start and header instead of window.location ? If that didn't solve your problem, I can't think of anything to help you. I am at my wit's end !

I want to complete this work. Because it is very urgent.

It maybe urgent for you but not for the members of this community. Have patience and wait for someone else to reply.

Did you try using ob_start and header instead of window.location ? If that didn't solve your problem, I can't think of anything to help you. I am at my wit's end !

It maybe urgent for you but not for the members of this community. Have patience and wait for someone else to reply.

Yes i tried for that , still the problem is same. We are hoping that someone will solve out problem.

Thanks for so much help,
gagan

If you are using Firefox 3.0.6 and testing on localhost, I suggest that you update to the latest firefox...

Firefox 3.0.6 has a bug with sessions on localhost...

Yes i tried for that , still the problem is same. We are hoping that someone will solve out problem.

Thanks for so much help,
gagan

HI naveen sir,
Can u suggest me if i want to use php code rather than javascript here when i am using login1.php page this code

<script type="text/javascript"> 

window.location="hoa.php?login=T"; 

</script>

Rather than using this code i want to use this line hoa.php?login=T
in PHP.
How i can use this line in PHP so it can go on this page . What code i will have to use in php for this. Please suggest me. I know may be this would be very easy. Beacause i judge that problem is in javascript code. Firefox is not accepting that code which we are using in javascript. please suggest me php code so that i can replace javascript code into PHP code.
Thanks,
Gagan

I have shown in the "working script". Use ob_start(); and header redirection instead of javascript redirection..

I have shown in the "working script". Use ob_start(); and header redirection instead of javascript redirection..

I know i am asking very simple questions beacuse i am beginner in php
i am using this code rather than javascript code . Am i right header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/hoa.php?login=T'); If u can suggest any other code of header then pls suggest me.
Thanks
gagan

Yep.. That is correct..

Yep.. That is correct..

Thanks,
I have resolved this , Now i am getting same output in mozilla and IE both.

Thanks for giving so much help Naveen sir
Problem was in javascript code .

Thanks
gagan kumar

Congrats :) Glad I could help! Cheers!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.