Cita:
me aparece este error cuando voy a elimiar la sesionWarning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\RS\MySpot\logout.php:2) in C:\AppServ\www\RS\MySpot\logout.php on line 4
Ya Se Destruyo la Sesion
Ya Se Destruyo la Sesion
Código PHP:
<?php
session_start();
if( isset($_SESSION['username']))
{
@session_destroy();
$_SESSION = array();
echo "Ya Se Destruyo la Sesion";
}
else
{
echo "No Se Ha Destruido la Sesion Aun";
}
?>