I try to delete cookie using ajax, and this was working fine in my local server, but same code not working server.
jquery
$.ajax({
type:'POST',
url:'/productdelete',
data: {'_token': token, 'cat_id':cat_id, 'ordertype':ordertype},
success:function(data){
location.reload();
},
error:function(){
alert("error!!!!");
}
});
Controller
Cookie::queue(Cookie::forget('key1'));
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2tsaLD5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire