Had to reset the redirect cookie for AJAX functions