Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • wouldn't it invalidate all the sessions of the related client ? Commented Jun 29, 2014 at 10:25
  • @chaodee No, it will invalidate the session you call it on. Commented May 3, 2015 at 11:31
  • it is useful when you want to invalidate whole Session. but suppose i want to remove particular session or variable from session than what. If you have better way than session.removeAttribute("xyz") than explain. but remember i want just remove variable from session not whole session. Commented May 3, 2015 at 16:07