Friends I had a problem with the sessions, because I can not recover them when I call them by ajax from another domain (the ajax calls the previous domain)
I create the sessions in this domain ( link )
and then I call that same domain with ajax but from another domain ( link ) (Put another port is another domain)
$.ajax({
type: "POST",
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)
}
});