How can i clear values in sessions.if i open a jsp page it is containing previous values.then i need to open a new page then only i am getting a fresh page

Showing Answers 1 - 3 of 3 Answers

sudhakar

  • Nov 4th, 2005
 

one solution is use session.invalidate() to clear the sessionor session.removeAttribute("Object Name") to unbound an Object from session

  Was this answer useful?  Yes

sudhakar

  • Nov 4th, 2005
 

one solution is use session.invalidate() to clear the sessionor session.removeAttribute("Object Name") to unbound an Object from session

  Was this answer useful?  Yes

nitin

  • Dec 16th, 2005
 

By default the session is true for each jsp page so if your getting the previous session value then declare the session as false explicilty in the jsp page

<%@ page session="false"%>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions