Warning: session_start() [function.session-start]: Cannot send session cache
limiter - headers already sent (output started at
d:\web\htdocs\sqltest\formsession\login_start.php:2) in
d:\web\htdocs\sqltest\formsession\login_start.php on line 4
for the following code
<?php
session_start();
if (!isset($_SESSION['name']))
{
$_SESSION['name'] = "";
}
if (!empty($_SESSION['name']))
{
echo ($_SESSION['name'] . " success login");
}
else { include('loginwindow.html'); }
?>
but it 's prefect for me to run the counter as follow .. it seems they are
the same
<?php
session_start();
if (!isset($SESSION['count'])) {
$SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo($_SESSION['count']);
?>