Mi trovereste, per favore, questo errore: "Warning : session_start(): Cannot send session cache limiter - headers already sent (output started at d:\programmi\easyphp1-8\www\phyrosia\chat\chatframeset.php:1) in d:\programmi\easyphp1-8\www\phyrosia\chat\chatframeset.php on line 2" ?
Codice PHP:
<?
include "../controlla_login.php";
$LOCAZIONE=$_GET['LOCAZIONE'];
$pagina_precedente = $_GET['pp'];
$_SESSION['LOCAZIONE']=$_GET['LOCAZIONE'];
$_SESSION['LAST']=$_GET['LAST_ONLINE'];
include "../ctrl_online.inc.php";
$LOCAZIONE2 = substr($LOCAZIONE,0,14);
if($LOCAZIONE2 == 'Stanza Privata'){
$LOCAZIONE_MOD = 'Stanza Privata';
}
else{
$LOCAZIONE_MOD = $LOCAZIONE;
}
?>
<html>
<head>
<title>Documento senza titolo</title>
<script language="javascript">
function imagechange() {
parent.leftFrame.document.getElementById("scorcio").src="grafica/Layout/menu/menu3<?=$LOCAZIONE_MOD?>.jpg";
}
</script>
</head>
<frameset rows="*" cols="*,150" framespacing="0" frameborder="no" border="0" onLoad="javascript:imagechange();">
<frame src="ChatFrameSetIn.php?LOCAZIONE=<?=$LOCAZIONE?>" name="topFrame" scrolling="NO" noresize>
<frame src="ChatOptFrame.php?LOCAZIONE=<?=$LOCAZIONE?>&pp=<?=$pagina_precedente?>" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>
</body></noframes>
</html>
--------------- controlla_login.php ----------------------------
<?
session_start();
if (!isset($_SESSION['USERNAME'])) {
header("Location: ../sessione_scaduta.php");
}
?>