Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: about the session , i don't have the current value.


Message #1 by "shinetime" <shinetime@2...> on Wed, 30 May 2001 17:40:30 +0800
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!


  Return to Index