Multiple choice technology programming languages

How to define a session time out of 10 minutes in web.xml

  1. <session-config> <session-timeout>10</session-timeout> </session-config>

  2. <session-config> <session-timeout>600</session-timeout> </session-config>

  3. <session-time-config> <session-timeout>600</session-timeout> </session-time-config>

  4. <session-config> <session-invalid-time>60</ session-invalid-time> </session-config>

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

Session timeout in web.xml is specified in MINUTES within the element, not seconds. The value 10 represents 10 minutes, whereas 600 would be 600 minutes (10 hours), which is incorrect for this requirement. The element is the correct parent for session timeout configuration.