include ('connect.php');
include ('loginchg.php');
//在登录前,先判断是否已经选择自动登录
$query="select * from netoa.users where Urname='{$_session['Username']}' and urPassword='{$_session['Password']}'";
// oci_free_statement($stmt);
$stmt=oci_parse($conn,$query);
$result= oci_execute($stmt);
if ($ruselt)
{
//如果session会话变量名与密码匹配,则自动登录
header('Location: http://localhost/index.php');
exit;
}
?>