Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/09/2007, 11:40
gesking
 
Fecha de Ingreso: diciembre-2006
Mensajes: 294
Antigüedad: 18 años, 3 meses
Puntos: 2
Re: Duración de sesiones

Gracias, me hicieron dar cuenta de mi error.

El error era que tengo el index.php donde muestro el formulario para ingresar con mi cuenta. Este era mi error:

Código PHP:
<?
session_start
();
if(!isset(
$SESSION)){
header("location:index.php");
} else {
include(
"config.php");
include(
"../header.php");
include(
"../meta.php");
?>
<table width="700" align="center">
<tr>
<td width="1%" valign="top">
<?php include("../menu.php"); ?>
</td>
<td width="99%" valign="top">
<form action="comprueba.php" method="POST">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="6%">Admin:</td>
      <td width="94%"><input type="text" name="login" /></td>
    </tr>
    <tr>
      <td>Clave:</td>
      <td><input type="password" name="pass" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="submit" type="submit" value="Entrar" /></td>
    </tr>
  </table>
  </form>
</td>
</tr>
</table>
<?php 
include("../derechos.php"); 
echo(
"</body></html>");
}
?>
Lo arreglé y quedó así
Código PHP:
<?
session_start
();
if(!isset(
$SESSION)){
include(
"config.php");
include(
"../header.php");
include(
"../meta.php");
echo 
'<table width="700" align="center">
<tr>
<td width="1%" valign="top">'
;
include(
"../menu.php");
echo 
'</td>
<td width="99%" valign="top">
<form action="comprueba.php" method="POST">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="6%">Admin:</td>
      <td width="94%"><input type="text" name="login" /></td>
    </tr>
    <tr>
      <td>Clave:</td>
      <td><input type="password" name="pass" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="submit" type="submit" value="Entrar" /></td>
    </tr>
  </table>
  </form>
</td>
</tr>
</table>'
;
include(
"../derechos.php"); 
echo(
"</body></html>");
} else {
header("location:user.php");
}
?>
Les agradezco por abrir mi mente :)