---> login.inc.php <---- botón del login
Código Javascript
:
Ver original$("#Login_Login").click(function(){
var Nick=$("#Login_Username").attr("value");
var Pass=$().crypt({method:"b64enc",source:$("#Login_Password").attr("value")});
$.getJSON('<?php echo AJAX_URL; ?>Login.php',{Nickname:Nick, Password:Pass},Message);
function Message(data){
if (data!=0){
$("#Login_Error").css("display", "none");
<?php session_start(); $_SESSION['sesion']=1; ?>
window.location.href = ('/page/home.inc.php?user_id='+data);
}else{
$("#Login_Error").css("display", "block");
}
}
});
Código HTML:
Ver original---> home.inc.php?user_id= <----
<?php
echo $_SESSION['sesion'];
?>
<li><a href="http://www.forosdelweb.com/f18/maintenance" title="Home">About Us
</a></li> <li><a href="http://www.forosdelweb.com/f18/maintenance" title="Home">Contact
</a></li>