servlets thread: about the session , i don't have the current value.
Please help me ,
i use a session, After i run a Logout.jsp which have the method named
removeAttribute , i open my webapplication and run it once again. i
found that in some files the Value that the session display is the
same as the last time.
i use the method is as follow:
session.setAttribute("item", Map.get("emp_name"));
// Map.get("emp_name") is a data from database.
item=3Dsession.getAttribute("item");
session.removeAttribute("item");
in the first page, the session value is currently correct . but in the
second file the session value is the same as the last time.
but when i refresh the second file once again , the value is correct.
please help me , thanks in advance!