|
Hello.
The frist cookie is from the server to mantein the session. You don�t see the frist cookie because it "Expires:End of Session". When you exit the browser it disapears. Maybe you see the cookie in your computer when you exit Netscape ??? I�igo ----------------------------------- http://www.ibex.es ----- Original Message ----- From: Elena Palanca <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 13, 1999 1:18 PM Subject: Cookies Problems > Hi, > is two days that I fight with this problem I hope someone could help me! > > I'm using JSP1.0 with Startserver. > In my servlet I have the following command: > res.setHeader("set-Cookie", "USER=PIPPO; expires=08/14/1999; > path=/servlet; domain=host;"); > > getServletContext().getRequestDispatcher("/jsp/Page.jsp").forward(req, > res); > > Then my jsp page is invoked. > > With IE5.0 I return the following: > 2 cookies, the first with this info: > Name:SESSIONID > Domain:host(right) > Path:/ > Expires:End of Session > DATA:To1010mC17531680005206052At (SessionId???) > > if I don't accept this, I receive another one with correct information: > Name:USER > Domain:host(right) > Path:/servlet > Expires:Thu, Sep 14 30828 02:48:05 > DATA:PIPPO > I would like to know why I have this behaviour, I'm doing something > wrong? > > If I follow this procedure in my computer I find only the second one. > If I use Netscape 4.06 I receive a messagge that says the following: > The server "host" wishes to set a cookie that will be sent to any server > in the domain "host". > The name and the value of the cookie are: USER=PIPPO > This cookie will persist until Sat Aug 14 00000 1999 > If I accept, then I can't find this cookie in my computer.Where did it > go? > > Another question is, it's correct my procedure or using servlet-Jsp > should be the JSP page to set the cookies? > > Thanks > Elena > |
- Cookies Problems Elena Palanca
- I�igo Serrano Llona
