Código PHP:
if($_SESSION['Usuario']){
/* Muestro datos */
}else{
/* Valido los datos pasados por el form y registro al usuario */
/* Cargo el id en la session y los redirecciono para que muestre datos*/
mysql_query("INSERT.......");
$_SESSION['Usuario']['id'] = mysql_insert_id();
header("location: $mismaPagina");
}
Por favor necesito ayuda urgente.
PD: registers globals esta en ON