hi,
it was a typo.. I have written the code exactly in the way you have written.
my problem is this
I have links to 7 files which the user can download.
The criteria is the user has to fill in his details only once (ie. for the first file alone).
I have two files. one to chksession and other for the detailsform.
when the user clicks on any of the link I take him to the chksession.php page where I do the following check
$dwnloadfile= $_GET["dwnloadfile"];
if(isset($_SESSION['username']))
{
header("Location:".$dwnloadfile);
}
else
{
header("Location:detailsform.php")
}
it happens that everytime I click on the link.. even when the session is available, I am taken to the detailsform page.
am I clear now?