<?php
$user = "...";
$pass = "...";
$username = $HTTP_GET_VARS['name'];
$password = $HTTP_GET_VARS['password'];
if($username == $user){
}else{
echo("wrong user");
}
if($password == $pass){
}else{
echo("wrong pw");
}
$admin = "yes";
$login = "yes";
session_start();
//starts session
session_id($username);
//sets id
session_register($admin, $login);
//tells if there admin or not
exit;
header( "Location: ".$HTTP_SERVER_VARS['HTTP_REFERER'] );
//sends them back to where they came from
?>
i know the exit is there i was usin it for debuggin. iget this error
wrong userwrong pw
Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp\www\dna\login.php:11) in c:\program files\easyphp\www\dna\login.php on line 22
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\Program Files\EasyPHP\tmp) in Unknown on line 0
the pw is right and so is the user. the path is set right cuz its creatin the session filein my dir.