csrf令牌未在codeigniter中更新

时间:2019-06-28 09:04:58

标签: javascript codeigniter

成功警告功能相同的值后,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));
           					}
               }); 
         }
      });

0 个答案:

没有答案