Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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:
How to attach/Detach cookies?
Confusion between Cookie and JSession
design question: should the lock manager be synchronized whenever it's used in Data?
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-2013