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.html#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]
