nerdexam
GIAC

GSNA · Question #236

What will happen if you write the following parameters in the web.xml file? <session-config> <session-timeout>0</session-timeout> </session-config>

The correct answer is B. The session will never expire. The <session-timeout> element of the deployment descriptor sets the session timeout. If the time specified for timeout is zero or negative, the session will never timeout.

Database & Application Auditing

Question

What will happen if you write the following parameters in the web.xml file? <session-config> <session-timeout>0</session-timeout> </session-config>

Options

  • AThere will be no effect on the session; it will last for its default time.
  • BThe session will never expire.
  • CAn error will occur during execution.
  • DThe session will expire immediately.

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    72% (18)
  • C
    16% (4)
  • D
    4% (1)

Explanation

The <session-timeout> element of the deployment descriptor sets the session timeout. If the time specified for timeout is zero or negative, the session will never timeout.

Topics

#session management#web.xml#session timeout#Java EE configuration

Community Discussion

No community discussion yet for this question.

Full GSNA Practice