Not all headers are returned on subsequent requests. The "Cookie"
headers however should be. This however depends if the browser handles
cookies(not all do!). Read RFC2109 for more information on cookies.

Andy

Art Technology Group
101 Huntington Ave 22nd Flr
Boston MA, 02199

Amit Karandikar wrote:
>
> I'm trying to set a new HTTP header in my response, using the
> response.setHeader("NewHeader") method.It's the first thing that is written
> out,
> before any other HTML content.
> I'm not sure about this, but can someone tell me if a Header is retained
> on all subsequent requests to the same site?
> What I'm intending to do here is autheticate the user in an initial
> Authentication Servlet on the User's first request and then set in this
> new header information specific to that User. All servlets on this same site
> can then check for this information in the header, instead of individually
> having to authenticate the User.
>
> Need a solution........
>
> Amit Karandikar
> 4C Solutions, Inc.
> Programmer / Analyst
> Off  Phone: (309) 751 6196
>
> ___________________________________________________________________________
> 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