storing facebook session from javascript to php -


is there way store session got javascript php's session? know have post, can give me example? have far: want store uid in php's session

<script type="text/javascript">                 jquery(document).ready(function() {                     fb.init({appid: '135570939849404', status: true, cookie: true, xfbml: true});                      fb.getloginstatus(function(response) {                     if (response.session) {                          //do smething?                      }else {                         window.location = "index.php"                      }                            });                   });         </script> 

apparently know want do, using jquery's ajax methods. there can enable post method.

jquery.ajax({    async:true,    type: "post",    url: ("/yourtarget.php"),      datatype : 'json',      data: {email : 'jeremy'},      success : function(data){          alert("success");      },      error : function(xmlhttprequest, textstatus, errorthrown) {         alert("error");     }  }); 

Comments