I found the problem was the path setting of the cookie. The Web App which does the redirect is mapped to /sso and the page the sendError redirects to is in a web app mapped to /pub I had to perform cookie.setPath("/") for the other app to see it
-----Original Message----- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:13 PM To: [EMAIL PROTECTED] Subject: Re: Setting cookie with response.sendError > -----Original Message----- > From: Nimmons, Buster [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 11, 2002 2:18 PM > To: [EMAIL PROTECTED] > Subject: Setting cookie with response.sendError > > > I have a page which has to perform a > response.sendError(499,"Oracle sso") > right before I perform the sendError I also set a cookie in > the response > with the response.setCookie(new Cookie("someKey","someValue") > . however > when the custom error page is displayed I noticed that the > cookie is not > getting set. Is this normal behavour Cookies not being set may depend upon factors that are not necessary concerned with your server or your program. Just check whether your browser supports cookies. For an in depth information about cookies you can refer this article by Marty Hall. http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Cookies. html Vikram. > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com