Okay, another try on this question ...
Have anyone at this forum ever been able to getMaxAge on a cookie extracted from the cookies-array in the request where the max-age is not -1?
When I create a cookie with the name userName, my name as value, and a max age 3600 seconds (or seconds for one day or whatever) do the COOKIE header (I picked it out in a try to find what it is wrong) in the request always look like:
userName=Jonny; JSESSIONID=30CFC9A24F10A161B1F2233B145A2FF0
And if I try to look at the age using getMaxAge is it always -1. The same is true for other cookies I have tried to set usig JavaScript. Could this be a bug in
Tomcat? I have tried to search a litle for it. The result is the same both when I try with IE and Firefox.