I seem to have multiple session starting.
The user gets through a login page and the session is registered and username variable added to the session. But as soon as they click on a link another session starts with no variables.
index.php
<?
Header("Cache-Control: no-cache");
$page="index.php";
include("table_start.php");
if (!$link)
{
$link="main.php";
}
include("$link");
?>
</TR></TD></TABLE>
</TD><TD VALIGN="TOP">
<? if ($link=='main.php' || $link=='search.php') {
?>
<table VALIGN="TOP" ALIGN="RIGHT" bgcolor="darkblue" width=100 HEIGHT=200 border=0>
<tr VALIGN="TOP"><td bgcolor="darkblue" >
<B CLASS="menu"><center>Interest</center></B></td></tr>
<tr VALIGN="TOP"><td bgcolor="white" >
<? include("alert.php");
}
?>
</td>
<?
include("table_end.php");
?>
table_start.php
<head><title></title>
<body bgcolor="#FFFFFF">
<link rel=stylesheet type="text/css" href="original.css" title="original style">
</head>
<table width="100%" height=60 bgcolor='darkblue'>
<tr>
<td><img src="logo.jpg" width="60" height="60"></td>
<td>
<table VALIGN="TOP" border="0" width="100%">
<tr ALIGN="LEFT"><td CLASS="header" ALIGN="CENTER"></td>
<td CLASS="header2" ALIGN="RIGHT"><?
$today=date("l d F, Y");
print("$today");
?></td>
</tr>
<tr ALIGN="LEFT"><td CLASS="header" ALIGN="CENTER"></td>
<TD ALIGN="RIGHT" CLASS="header"><?
print("$sessionName");
?></TD></tr>
</table>
</td>
</tr></table>
<?
if (!link)
{
$link="main.php";
}
?>
<table width="100%" bgcolor="white" height=400 border=0 cellspacing=1 cellpadding=0 ALIGN="CENTER" VALIGN="TOP">
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td VALIGN="TOP">
<table VALIGN="TOP" bgcolor="darkblue" width=100 HEIGHT=180 border=0>
<tr VALIGN="TOP"><td bgcolor="darkblue" >
<B CLASS="menu"><center>Menu</center></B></td></tr>
<tr VALIGN="MIDDLE"><td bgcolor="white">
<A HREF="http://10.1.27.27/PASD/index.php?link=main.php" OnMouseOver="this.style.textDecoration='underline'; this.style.color='Red'; "
onMouseOut="this.style.textDecoration='underline' ; this.style.color='darkblue'">
Main Page</a>
<A HREF="http://10.1.27.27/PASD/index.php?link=search.php" OnMouseOver="this.style.textDecoration='underline'; this.style.color='Red'; "
onMouseOut="this.style.textDecoration='underline' ; this.style.color='darkblue'">
Search</a>
.....
is it a problem that I am using the same page to display a number of pages ??
Any help would be appreciated