Servlet that creates and sets the cookie :
and the servlet that gets the cookie :
Here, I'm setting the maximum age for the cookie as
30*60 (30 minutes) but when I reach the second code , where I'm retrieving the cookie info, it gives me the maximum age as
-1, that means cookie is not being stored.
I am not able to understand the output. What am I missing here?
[ July 13, 2008: Message edited by: Khushbu Ghodasara ]