Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/03/2008, 09:40
clyapeb
 
Fecha de Ingreso: marzo-2008
Mensajes: 10
Antigüedad: 16 años, 2 meses
Puntos: 0
ayuda error manejando sesiones

Mi problema es el siguiente tengo instalado php 5.. con IIS y mysql, estoy manejando sesiones tengo dos cajas de texto para el usuario y clave en la interfaz principal, verifico que el usuario exista, si es asi me envia a la interfaz de dicho usuario si no me deja en la principal esto me funciona, pero cuando llega a la interfaz de usuario me muestra el siguiente error:

PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\tati\CONFIG~1\Temp\php\session\se ss_q8ba87brl22kcdl4ji85r6f5h2, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\la panela\productor\html\interfaz_prod.php on line 1

he buscado ese error y me dice que cambie el .ini y lo hice:
session.save_path = "C:\DOCUME~1\tati\CONFIG~1\Temp\php\session\"
aparte encontre esta misma linea en 3 partes diferentes, las modifique todas

me sigue el mismo error, entonces cambie la ruta en el .ini:
"session.save_path = "C:\php\tmp" y cree la carpeta ademas le di "echo session_save_path();" y me imprime la ruta anterior: C:\DOCUME~1\tati\CONFIG~1\Temp\php\session.

todo lo que encuentro es con apache no se si es que con IIS no se manejan sesiones o tengo mal configurado el php, tambien le di permisos de escritura a la carpeta y nada anexo el codigo:

index.html
<code><form action="../php/borrar.php" method="post" enctype="multipart/form-data">
<table width="169" height="168" bordercolor="#D8D8D8" border="2">
<tr>
<td width="67" height="44" align="center" bordercolor="FFFFFF"><img src="../imagenes/symbol4.gif" width="53" height="48" /></td>
<td width="107" bordercolor="FFFFFF"><div align="center" class="Estilo4 Estilo16">LOGIN</div></td>
</tr>
<tr>
<td height="118" colspan="2"><table width="161" height="100" border="0" bgcolor="#F4F4F4">


<tr>
<td width="186" height="26"><span class="Estilo14"><span class="Estilo15">Usuario:</span>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </span> <input type="text" name="usuario" size="6" maxlength="30"></td>
</tr>
<tr>
<td height="30" class="Estilo5"><span class="Estilo13"><span class="Estilo15">Contrase&ntilde;a: </span></span>
<input type="text" name="contraseña" size="6" maxlength="30" ></td>
</tr>
<tr>
<td height="32" bgcolor="#E4E4E4"><table width="155" border="0">
<tr>
<td width="98"><span class="Estilo12"><a href="../../productor/html/regis_prod_ind.html">REGISTRARSE</a></span></td>
<td width="66" align="right" class="Estilo14"><input type="submit" name="ACEPTAR" value="entrar"></td>
</tr>
</table></td>
</tr>

</table></td>
</tr>
</table>
</form></code>


borrar.php

<code><?php
$u=$_POST['usuario'];
$c=$_POST['contraseña'];
$con=mysql_connect ("localhost","root","root");
mysql_select_db("lapanela");
$sql="SELECT * FROM productor_ind where cedula IN (SELECT cedula_prod FROM usuario_prod_ind where usuario='" .$u ."')";
$rs=mysql_query($sql,$con);
if($tabla = mysql_fetch_array($rs)){
session_register('user');
$_SESSION['user'] = $tabla[0];
header('location:../../productor/html/interfaz_prod.php');}
else
{header('location:../html/index.html');}?></code>


interfaz_prod.php

<code><?php session_start();
echo session_save_path();
if(!isset($_SESSION['user']) )
{
?></code>

gracias por cualquier luz de ayuda

claudia