$.ajax({
type: 'POST',
url: 'session.php',
async: false,
success:function(response){
data = JSON.parse(response);
setCookie('1', value, '');
setCookie('2', value, '');
setCookie('3', value, '');
setCookie('4', value, '');
}
});