Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Web Component Certification (OCEJWCD)
posted 12 years ago
I am sending a sample cookie from my
to the client like this:
Cookie cookie = new Cookie("firstName", "Shravan"); cookie.setMaxAge(30*60); response.addCookie(cookie);
When i get the next request from the client, i get back the cookie but i see that the
is -1. I thought it
be 30 minutes.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
How to attach/Detach cookies?
Confusion between Cookie and JSession
Difference between Cookies and Session in servlets
Cookie access with EL expression
design question: should the lock manager be synchronized whenever it's used in Data?