Annoying Generating Cookies files problem
Hi, Masters:
I encounter a problem for generate my own cookie files; I write a servlet class as belows:
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class TestCookie extends HttpServlet{
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
resp.setContentType("text/html");
Cookie cl1 = new Cookie("user" ,"somebody");
Cookie cl2 = new Cookie("password","23123");
resp.addCookie(cl1);
resp.addCookie(cl2);
cl2.setMaxAge(3600);
resp.getWriter().println("Cookie Setted");
}
}
But I can not see cookie files that generated in the corresponding directory;
(C:\Users\Burglar_Cat\AppData\Roaming\Microsoft\Wi ndows\Cookies)
My OS is win7 and my ide is MyEclipse 8.5. Both the mini explorer imbeded in
ME and IE8 both can not generate the files. My securites sets on IE8 is Middle(
and I've tried to set the level to lowest but does not work.) I am sure web.xml files configurated right.To something Peculiarly that some other websites I visited can generate cookie files in my PC. Can someone work my problem out?
Thanks here