tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Cardoso" <bcard...@oninetspeed.pt>
Subject RES: Persistent Cookies
Date Mon, 04 Mar 2002 12:20:27 GMT
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:Filip.Hanik@evant.com] 
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:bcardoso@oninetspeed.pt]
Sent: Sunday, March 03, 2002 6:07 PM
To: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message