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
begin:vcard
n:Palanca;Elena
tel;work:Dipartimento di Informatica di Pisa
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Dott. Elena Palanca
end:vcard

Reply via email to