As I understand it, that won't work. Headers are not returned to the server
by the browser. You might want to look at the HttpSession class, it does
pretty much what you're looking for.
(*Chris*)
----- Original Message -----
From: Amit Karandikar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 1999 10:47 AM
Subject: Setting Http Header
>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