Expand my Community achievements bar.

SOLVED

Session Logout()

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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