Thank you. I serch c:\windows\profiles\cookies But I coludn't find cooke that was sened by werServer. And I tried value set.MaxAge() 10000,10,-1ets Dose anybody have code,can make cookies in client HDD. > I'm not using Win95 right now, so I cannot be sure about this information. > But you can check under c:\windows\profiles. In that folder is the settings > for each user of the machine and each user has his own cookies. > If you don't find, you can still use the search engine of Windows to find > all folders with the name cookies. > > I hope it helps you. > > > -----Ursprungliche Nachricht----- > > Von: muy [mailto:[EMAIL PROTECTED]] > > Gesendet: Freitag, 3. November 2000 12:02 > > An: [EMAIL PROTECTED] > > Betreff: Cannnot create Cookie file in client's HDD > > > > > > Hello. > > > > I cannnt find cookie file. > > > > > > I use > > JSWDK-1.0.1 > > IE5.5 > > Windows95 > > > > Offcource I serched c:\windows\cookis. > > > > > > > > import java.io.*; > > import javax.servlet.*; > > import javax.servlet.http.*; > > > > public class CookieTest extends HttpServlet { > > > > public void doGet(HttpServletRequest request, > > HttpServletResponse response) > > throws IOException, ServletException > > { > > response.setContentType("text/html"); > > PrintWriter pw = response.getWriter(); > > String name = "cookietest"; > > Cookie[] cookies = null; > > > > Cookie cookie = new Cookie(name, "value"); > > cookie.setMaxAge(100000); > > response.addCookie(cookie); > > > > pw.println("<html>"); > > pw.println("<body>"); > > > > if ((cookies = request.getCookies()) != null) { > > for (int i=0; i<cookies.length; i++) { > > pw.println(cookies[i].getName()); > > pw.println(cookies[i].getValue()); > > } > > } > > pw.println("</body>"); > > pw.println("</html>"); > > } > > } > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to