Arg... I had some typo mistakes. Here is the correct code:
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...
This JSP code doesn't return the same getMaxAge(). 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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.