Chi mi aiuta? Sto impazzendo...
codice:
<?
//start the session
session_start();
if (isset($_SESSION['sid'])) { $msg = "ALREADY_LOGGED"; } // LOGGED
else
{ header ("location: test2.php"); }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
Perchè ottengo questo errore?
codice:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/main.php:1) in /www/main.php on line 3