• Post Reply Bookmark Topic Watch Topic
  • New Topic

session data in sessionDestroyed method  RSS feed

 
vas reddy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can some one help me on this..

How to get session data in sessionDestroyed method of HttpSessionListener?

I was trying to get session value some thing like this but got null value.
(userId already set in the session object earlier)

String userId = (String)sessionEvent.getSession().getAttribute("userId");

thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What container and version are you using?
What version of the servlet spec does is support?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!