This JSP code doesn't return the same Max age. Any idea why, and how can I fix that?
Cookie cookie = new Cookie("test", "some value");
cookie.setMaxAge(86400);
response.addCookie(cookie);
try
{
Cookie[] cookies = request.getCookies();
for (int i=0; i<cookies.length; i++)
{
if...