no envia a la pagina session.php. solo ingresa el usuario el login y pass.
Código:
ajax.open("POST", "session.php?login="+login+&pass="+pass", true); function procesar(){ var login = document.formulario.login.value; var pass = document.formulario.pass.value; ajax=objetoAjax(); ajax.open("POST", "session.php", true); ajax.onreadystatechange=function(){ if (ajax.readyState==4){ if(ajax.status == 200){ }else{ alert("Ha ocurrido un error: " + ajax.statusText); } } ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); ajax.send("login="+login+"&pass="+pass) } }