Hi Craig,
Thanks for your info.
So, with all these limitations, I cannot use
getDomain(), getMaxAge() methods on the
request.getCookies() Object.
And I'll have to stop encrypting the cookies
with domain name, considering all the cases now, right ?
Thanks,
Naveen.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Craig
R. McClanahan
Sent: Friday, September 08, 2000 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: domain value of the Cookies in Servlets
Milt Epstein wrote:
> On Fri, 8 Sep 2000, Naveen Chandra wrote:
>
> > Hi Nic & Milt,
> >
> > Thanks lot for all your valuable answers.
> > I really appreciate all your help in this regard.
> > Let me ask one simple question.
> > If I cannot get those values in the server end, then why does
> > Java API supports with those getXXX() methods ?????
> > Is it just to confuse the user ????
>
> Yes, that is correct. It looks like it is working.
>
> Sarcasm aside, things change, and although today maybe browsers don't
> send that information, maybe someday they will. I think there are
> several aspects where browsers (and maybe servers) are behind in how
> they handle cookies, for example.
>
The other legitimate reason for those getXxx() methods to exist on
javax.servlet.http.Cookie is when you are *creating* cookies to be sent in
your
response. Your code might need to check what has been set earlier.
Also, the whole discussion points out how important it is for servlet
programmers to understand the underlying protocol (HTTP/1.0 or HTTP/1.1)
that
servlets are built on top of, and how current browsers use or abuse it.
Craig McClanahan
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing
Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ
Applications to Tomcat
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html