I have a strange problem that I couldn't solve, yet. I use codeiginter ajax and jquery.
I do the call from this domain http://localhost:8070/apps/views
$.ajax({
url:'http://localhost/multicode/login/prueba',
datatype:"json",
crossDomain: true,
contentType: "application/x-www-form-urlencoded",
dataType: 'json',
processData: false,
cache: false,
success : function(r){
console.log(r)
}
});
Before I exec this code I create the session in this url:
http:// localhost/multicode/login/prueba
what is happen now is when I exec the ajax code I have as result null and when I exec this url (http://localhost/multicode/login/prueba) on the browser I get the sessions that I created at the begin.