I have form that send the content, via ajax, to another php file: "commants-manage.php".
Except the content i need be able to use the value of the language cookie.
When i print cookie value in the ajax file i don't received the value i put in the main page
JS:
$.ajax({
type : 'POST',
url : 'ajax/commants-manage.php',
data : formData,
dataType : 'json',
code : true
})
.done(function(data) {
......
}
AJAX FILE
session_start();
echo $_COOKIE['user_lang'];
....
..
.
?>