A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
Cookies
Shravan Durvasula
Greenhorn
Joined: Mar 06, 2004
Posts: 19
posted
Dec 09, 2004 22:12:00
0
Hi all:
I am sending a sample cookie from my
JSP
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
maxAge
is -1. I thought it should be 30 minutes.
Thanks,
-SkD
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Cookies
Similar Threads
Difference between Cookies and Session in servlets
Confusion between Cookie and JSession
Cookie access with EL expression
How to attach/Detach cookies?
design question: should the lock manager be synchronized whenever it's used in Data?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter