Added cookie is not showing properly in the browser.
Hi,
Am using AEM 6.2 , I have created a servlet which gets invoked on a ajax call,
Below is the way which i have used to add the cookie.
String generatedSession = RandomStringUtils.randomAlphabetic(64);
LOG.info("Generated a_V : "+generatedSession);
Cookie responseCookie = new Cookie("a_v",generatedSession);
responseCookie.setMaxAge(1000);
responseCookie.setPath("/");
response.addCookie(responseCookie);
Th above method to add the cookie is not working i.e., i cannot able to see the cookie in the response, nor am not getting any error. I have removed all the blocks to the cookie in my browser,