-- Are you sending the cookies before any response. All headers (including cookies) need to be sent before any content. -----Original Message----- From: Frank Morton [mailto:[EMAIL PROTECTED]] Sent: Friday, June 25, 1999 12:19 PM To: Java Apache Users Subject: Cookie Help Needed -- I have referred to the usual places for help (like the FAQ) and still have not had luck setting cookies directly with apache-jserv 1.0. To set the cookie, I am doing: Cookie cookie = new Cookie("sessionid","1234567890"); response.addCookie(cookie); I have not seen any way to verify if the cookie was really set. Is there a way to do so? I have also tried messing with many of the other settings (like setMaxAge) and none seem to make any difference. Then, to retrieve the cookie I am doing: Cookie[] cookies = request.getCookies(); No matter what I do, cookies always come back as an empty array (using cookies.length). I have done this from multiple browsers, so I do think it is on the server-side. This seems so basic, I must be missing something basic. Help! Thanks. -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] READ THE FAQ!!!! <http://java.apache.org/faq/> Archives and Other: <http://java.apache.org/main/mail.html/> Problems?: [EMAIL PROTECTED] -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] READ THE FAQ!!!! <http://java.apache.org/faq/> Archives and Other: <http://java.apache.org/main/mail.html/> Problems?: [EMAIL PROTECTED]