• Post Reply Bookmark Topic Watch Topic
  • New Topic

Best practise in Implementing HttpSessionListener?

 
Romi Dave
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have been following few threads thats refering to HttpSessionListner. I have a question related to the implementation of its methods. Is there any kind of best practise to write a logic in the sessionCreated and sessionDestroyed methods. What should not be written and what would be the system impact of it?

Thanks,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're pretty simple really.
What are you trying to accomplish with them?
 
Romi Dave
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically in my application i intend to make service calls to database to update the user information when the session is created and destroyed. I was wondering how good an idea would that be and how would it affect the performance?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!