vale quimfv ahora quedaria algo asi :
Código PHP:
<? session_start();
if (!isset($_SESSION["autorizacion"])) $_SESSION["autorizacion"]=false;
if($_SESSION["autorizacion"]){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>KeePass</title>
</head>
<frameset cols="20%,80%" frameborder="0" border="0" framespacing="0">
<frameset rows="12%,88%*" frameborder="0" border="0" framespacing="0">
<frame name="top" src="top.html" marginheight="0" marginwidth="0" scrolling="auto" noresize>
<frame name="menu" src="menu.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
</frameset>
<frameset rows="12%,88%*" frameborder="0" border="0" framespacing="0">
<frame name="alto" src="topnew.htm" frameborder="0" border="0" framespacing="0">
<frame name="content" src="content.html" marginheight="0" marginwidth="0" scrolling="auto" noresize>
</frameset>
</frameset>
</html>
<?
}else{
echo "No estas autenticado , se te va a redirigir al login.";
header("Location: login.php");
}
?>
Esto que lo he de poner en todas las paginas ? incluso las otras html de los frames que tengo ?
Tengo que quitar de todas las paginas lo de
Código PHP:
<? session_start();
$_SESSION["autorizacion"]="no"; ?>
???