does anyone know what this error means?
Warning: session_start() [function.session-start]: open(C:\PHP\sessiondata\sess_cc873006419444d360415b38ac52cb55, O_RDWR) failed: No such file or directory (2) in C:\Documents and Settings\Hermann\Escritorio\webserver\pagina2\include\validate.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Documents and Settings\Hermann\Escritorio\webserver\pagina2\include\validate.php:2) in C:\Documents and Settings\Hermann\Escritorio\webserver\pagina2\include\validate.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Documents and Settings\Hermann\Escritorio\webserver\pagina2\include\validate.php:2) in C:\Documents and Settings\Hermann\Escritorio\webserver\pagina2\include\validate.php on line 2
i put session_start() at the beginning of the code with no white spaces before.
validate.php looks like this:
<?php
session_start();
$user_name = $_POST['user_name'];
$password = $_POST['password'];
include("conn.php");
$query = "SELECT * FROM login WHERE user_name='$user_name' AND password='$password'";
$result = mysql_query($query, $connection) or die('error making query');
$affected_rows = mysql_num_rows($result);
if($affected_rows == 1) {
$valid = true;
}
else {
$valid = false;
}
?>