Session Logout() | Community
Skip to main content
New Participant
October 16, 2015
Solved

Session Logout()

  • October 16, 2015
  • 1 reply
  • 562 views

In my bundle I am accessing Session like this

Session session=slingRequest.getResourceResolver().adaptTo(Session.class);

I am concerned about creating possible memory leaks. My question is should I be doing session.logout() here after my bundle completes execution?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

No, you do not. You only need to logout of sessions/resource resolvers which you log into.

1 reply

JustinEd3Accepted solution
Employee
October 16, 2015

No, you do not. You only need to logout of sessions/resource resolvers which you log into.