Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2008, 19:36
gesking
 
Fecha de Ingreso: diciembre-2006
Mensajes: 294
Antigüedad: 17 años, 4 meses
Puntos: 2
Problemas con session_start

Hola! gente, tengo un simple sistema de usuarios, que lo hice asï:

Empieza una session. Si la session X existe, muestra el panel del usuario, si no existe, muestra un formulario de usuario.

Pero... me salta este error y no se como solucionarlo...

Código PHP:
session_start();
include(
"config_usuarios.php");

if (isset(
$_SESSION['s_username'])) {
echo 
'<h3>Bienvenido '.$_SESSION['s_username'].'!</h3>
<b>></b>    <a href="subir_imagenes.php">Subir imágenes</a>
<br>
<b>></b>    <a href="album.php">Ver album</a>
<br>
<b>></b>    <a href="eliminar_imagenes.php">Eliminar imágenes</a>
<br>
<b>></b>    <a href="perfil.php">Perfil</a>
<br>
<b>></b>    <a href="logout.php">Salir</a>'
;
} else { 
echo 
'<form action="entrando.php" method="POST">
<table width="170" style="border:1px solid #000000;">
<tr>
<td align="right"> Usuario:
<input type="text" size="15" maxlength="25" name="username">
</td>
</tr>
<tr>
<td align="right"> Clave:
<input type="password" size="15" maxlength="25" name="password">
</td>
</tr>
<tr>
<td align="center"><input type="submit" value="Ingresar">
</td>
</tr>
<tr>
<td align="center"><div align="right"><a href="registrar.php">Registrarse</a></div></td>
</tr>
</table>
</form>'
;

Desde ya gracias..