Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSession data to be cleared reg.

 
gan chan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using WebSphere App server & VAJava. We are accessing several content files(XML)and storing in the session data which is a HttpSession object. We would like to clear the session data. So as to retrieve new content changes.
Shutting Down WebSphere App. Server is a solution. But any alternative using a servlet or so. Please suggest us.
Ganesh & Arun
 
Brett Knapik
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why would you need to do that? it clears when the session is over or maybe you can over-write it i do not know.
------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ganesh,
If you want to clear the whole session just use

regds
maha anna
[This message has been edited by maha anna (edited December 22, 2000).]
 
Satish Kasala
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ganesh,
A little addition to what maha anna said.
Be sure to check for the null of userSessionRef variable before you call the invalidate() method. Because if the session does not already exist it would be null and a call to invalidate() method might throw up a null pointer exception.
my 2 cents worth
Satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic