A JSP page is opened in a particular Session. A button is present in that JSP page onclick of which a new Window gets opened.

  1. The Session is not valid in the new Window

  2. The Session is valid in the new Window

  3. New session is created and that is valid.

  4. None of the above


Correct Option: B

AI Explanation

To answer this question, we need to understand how sessions work in web applications.

When a user accesses a JSP page, a session is created for that user. The session is used to store data that needs to be maintained across multiple requests from the same user.

In this scenario, when the button is clicked and a new window is opened, the session is still valid in the new window. This means that any session attributes or data stored in the session will still be accessible in the new window.

Therefore, the correct answer is:

Option B) The Session is valid in the new Window.

Find more quizzes: