This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I'm using cookies for my site, and for debugging I need to see how long cookies are alive to determine whether I should extend their life time or not. The code to create a cookie: (in a login.java)
And to read it out:
But, age reads always -1 (it does die however after 60 seconds, so the setMaxAge(60) works) and path reads "null". The getName and getValue do work, and I can adjust them perfectly... What is wrong with my getPath and getmaxAge()?