Codice PHP:
<?
session_start();
include "controlla_login.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Phyrosia</title>
</head>
<frameset cols="280,*" frameborder="NO" border="0" framespacing="0">
<frameset rows="1,*" frameborder="NO" border="0" framespacing="0">
<frame src="refresh.php" name="topFrame" scrolling="NO" noresize>
<frame src="leftframe.php" name="leftFrame" id="leftFrame" scrolling="NO" noresize>
</frameset>
<frame src="mainframe.php" name="mainFrame" id="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
controlla_login.php è:
Codice PHP:
<?
session_start();
if (!isset($_SESSION['USERNAME'])) {
header("Location: sessione_scaduta.php");
}
?>