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:
1-й способ: header ("refresh: 0"); 2-й способ: header ("Location: ".$_SERVER['HTTP_REFERER']); In both cases, it produces the same error in responseText. How to make it work?
ERROR SUCH:
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\koxan.ru\www\PHP\authOut.php:11) in Z:\home\koxan.ru\www\PHP\authOut.php on line 15