Hi,
I am using AEM 6.5 author instance. After login authentication, i have tries several ways to redirect new page. I can see in response, landing page is coming but does not reload in the browser. In the end, login page remains in browser.

Below is the POST of my login servlet :
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) {
String path = "/content/amc/en/homepage/landing-page.html";
try {
String uname = request.getParameter("uname");
String password = request.getParameter("password");
//getting some token
if (StringUtils.isNotEmpty(token)) {
Map<String, String> params = new HashMap();
// Add token to cookie
org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper req =
new org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper(request) {
public String getMethod() {
return "GET";
}
};
javax.servlet.RequestDispatcher dispatcher = request.getRequestDispatcher(path);
dispatcher.include(req, response);
// AuthUtil.sendRedirect(request,response, path,params);
} else {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
} catch (Exception e) {
e.printStackTrace();
}
}
With AuthUtil.sendRedirect() below is the response but page not navigate to landing-page in the browser.

Any idea to fix this?
Thanks,