A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Joined: Mar 06, 2004
Dec 09, 2004 22:12:00
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 should be 30 minutes.
I agree. Here's the link:
Confusion between Cookie and JSession
design question: should the lock manager be synchronized whenever it's used in Data?
How to attach/Detach cookies?
Difference between Cookies and Session in servlets
Cookie access with EL expression
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014