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 ????

Pl. correct me if I am wrong.

Thanks in advance,
Naveen.


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Nic
Ferrier
Sent: Friday, September 08, 2000 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: domain value of the Cookies in Servlets


>>> Naveen Chandra <[EMAIL PROTECTED]> 08-Sep-00 6:00:20 PM >>>

>My task is to retrive all the cookie parameters
>using getXXX() methods and decrypt it as I encrypt
>them using domain, version and age while I set the cookie.
>So decrypt I need to know in the server end all these
>domain, version and age of the cookie using getXXX() methods.
>I can get name valu pair from getHeader() but not
>other values. And getName() and getValue() works fine,
>but not other getXXX() methods.
>Hope I am clear to all about my problem.
>Any help in this regard is really great for me.

Yes - you are clear in the description of your problem. You have
explained it to use before.

Have the answers not been clear?

You can't do it.

When the browser sends the cookie back to the server it DOES NOT send
anything about the cookie except the name and the value.

The path and the domain that you have set on the cookie ARE NOT
passed to the server by the browser.

Therefore you CANNOT do what you are askling and we have all
explained that several times now.


Nic

___________________________________________________________________________
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

Reply via email to