Ajax request is called php script. It ends the current session and at the end you need to refresh the page. Did in 2 ways:
- 1st way:
header ("refresh: 0"); - 2nd way:
header ("Location: ".$_SERVER['HTTP_REFERER']);
In both cases, it produces the same error in responseText. How to make it work?