Multiple choice

Which of the following JSP session method specifies the time between client requests before the servlet container will invalidate this session?

  1. public int getMaxInactiveInterval()

  2. public void setMaxInactiveInterval(int interval)

  3. public long getLastAccessedTime()

  4. public void invalidate()

  5. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Yes, this method specifies the time between client requests before the servlet container will invalidate this session