Answer the question
In order to leave comments, you need to log in
Why are cookies not being sent via ajax?
I define
via ajax I send the necessary data to the ajax.php filesetcookie("client",$client, time()+3600,"/");
function storage(id){
$.post(str,{
search: $('#s'+id).val()
}, function(data){
$('#storage_result'+id).html(data);
});
return false;
}//storage
session_start();
$client=$_COOKIE['client'];
print_r($client);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question