I've created a session on all my files... below is a sample...
<?php
session_start();
header("Cache-control: private"
;//IE 6 fix
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"
;
header ("Last-Modified: " . gmdate("D, d M Y H:i:s"
. " GMT"
;
header ("Cache-Control: no-cache, must-revalidate"
; // HTTP/1.1
header ("Pragma: no-cache"
;
if ($_SESSION['lname'] == "username"
{
}
else
{
die("Please <a href=\"index1.htm\"> Login </a>As Lecturer First!<br>"
;
}
?>
the problem here is there is an error when I code files that have session and I include a file that has a session also. The 2 sessions seem to clash. An error occurs. How do I fix this problem?
<?php
session_start();
header("Cache-control: private"

header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"

header ("Last-Modified: " . gmdate("D, d M Y H:i:s"


header ("Cache-Control: no-cache, must-revalidate"

header ("Pragma: no-cache"

if ($_SESSION['lname'] == "username"

}
else
{
die("Please <a href=\"index1.htm\"> Login </a>As Lecturer First!<br>"

}
?>
the problem here is there is an error when I code files that have session and I include a file that has a session also. The 2 sessions seem to clash. An error occurs. How do I fix this problem?