Foros del Web » Programando para Internet » PHP »

problemas con inicio de sesiones

Estas en el tema de problemas con inicio de sesiones en el foro de PHP en Foros del Web. login.php <form name="form" action="session.php" method="POST"> <table width="350" cellspacing="1" align="center"> <tr> <td width="150" align="right" class="azul"><strong> Nombre de usuario : </strong></td> <td width="150"><input name="login" type="text" class="bod Estilo1" ...
  #1 (permalink)  
Antiguo 26/05/2005, 14:27
 
Fecha de Ingreso: mayo-2005
Mensajes: 3
Antigüedad: 19 años
Puntos: 0
Desacuerdo problemas con inicio de sesiones

login.php


<form name="form" action="session.php" method="POST">
<table width="350" cellspacing="1" align="center">
<tr>
<td width="150" align="right" class="azul"><strong> Nombre de usuario : </strong></td>
<td width="150"><input name="login" type="text" class="bod Estilo1" value=""></td>
</tr>
<tr>
<td width="150" align="right" class="azul"><strong> Contraseña: </strong></td>
<td width="200"><input name="password" type="password" class="bod "></td>
</tr>
<tr>
<td width="150"> </td>
<td width="200"><input type="submit" class="bluebutton " value="Ingresar"></td>
</tr>
</table>
</form>

----------------------------------------------------------------------------------------------------------------------------------------------------
session.php

<?php
$link=mysql_connect("localhost","root","");
$uno=mysql_select_db("thonor",$link);
$sql=("select * from usuarios where login='$login' and password='$password'");
$result=mysql_query($sql,$link);
if (mysql_num_rows($result)!=0){
session_start();
$_SESSION['autentificado'] = 'SI';
header("Location: bienve.php");
}
else
{
header("Location: login.php");
}
?>


----------------------------------------------------------------------------------------------------------------------------------------------------

Warning: open(/tmp\sess_75ebd2cbcbc2707111c9e218805dbc71, O_RDWR) failed: m (2) in C:\apache\htdocs\honor1\session.php on line 7

Warning: Cannot add header information - headers already sent by (output started at C:\apache\htdocs\honor1\session.php:7) in C:\apache\htdocs\honor1\session.php on line 9

Warning: open(/tmp\sess_75ebd2cbcbc2707111c9e218805dbc71, O_RDWR) failed: m (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
----------------------------------------------------------------------------------------------------------------------------------------------------

tengo este problema, estos son los errores que me salen, ayudenme por favor...
  #2 (permalink)  
Antiguo 26/05/2005, 14:45
 
Fecha de Ingreso: mayo-2005
Mensajes: 3
Antigüedad: 19 años
Puntos: 0
<b>por favor ayudenme, lo necesito urgente...</b>

ayuda....
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:45.