I did what you said, and it still doesnt work.. I don't think it's about
setting a domain, because setDomain() method is just to tell the cookie
to which sites he will return, but my cookie is not even being
created... 

-----Mensagem original-----
De: Filip Hanik [mailto:[EMAIL PROTECTED] 
Enviada em: ter�a-feira, 4 de Mar�o de 2003 2:13
Para: Tomcat Users List
Assunto: RE: Persistent Cookies

you have to set the cookie domain, so that the domain matches the URL
your outside users access it with
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.h
tml#setDomain(javax.servlet.http.String)


Filip

-----Original Message-----
From: Bruno Cardoso [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 03, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: Persistent Cookies


Hi,
 
I made a simple login/logout system with persistent cookies, the problem
is that it only works with me (localhost), every time someone try to
access my website and login, the cookie is not created for them. I have
made a test with an example I saw in the book "Core Servlets and JSP"
with persistent and session cookies, and it also works for me, but for
outsiders it will only work for the session cookies. My question is how
can i make tomcat to allow everyone to create persistant cookies that
are saved in their discs? Thank you guys
 
Peace!
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to