I have a JQuery login request as follow using Json encode / decode:

```
$('#btn_signin').click(function(){
    var parameters = $('#signin_form').serialize();
    $.ajax({
        url: baseurl + 'site/loginRequest',
        type: 'POST',
        data: parameters,
        dataType: 'json',
        success: function(output_str){
            if(output_str.usertype == "a"){
                var sess_email = output_str.email;
                window.location.replace(baseurl + 'site/page_a');

            }else if(output_str.usertype == "b"){
                var sess_email = output_str.email;
                window.location.replace(baseurl + 'site/page_b');

            }else{
                $('#result_msg').html(output_str);
            }
        }
    });
});

```

As seen on the script with **var sess\_email** how can I pass it to php variable?

Any advise? thanks.