成功警告功能相同的值后,csrf tocken不会更新
$.ajax({
url: '<?php echo base_url()?>home/get_checkin',
type: 'POST',
data: {value: id},
dataType: "json",
success: function(data)
{
alert($.cookie(csrf_cookie_name));
$('#csrf').val($.cookie(csrf_cookie_name));
$.ajax({
url: '<?php echo base_url()?>home/get_services',
type: 'POST',
data: {value: data.checkin[0].check_in_unique_id},
dataType: "json",
success: function(data1)
{
alert($.cookie(csrf_cookie_name));
$('#csrf').val($.cookie(csrf_cookie_name));
}
});
}
});