QuestionQ30

VerifiedSecure Coding Practices for Session Management

The developer wants to remove the HttpSession object and its values from the client's system.

Which of the following methods should be used for this purpose?

Explanation

HttpSession.invalidate() invalidates the session and unbinds every object associated with it, removing the session’s stored attributes. HttpSession API

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!