File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Session Expiration Doubt  - 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Session Expiration Doubt  - 1" Watch "Session Expiration Doubt  - 1" New topic

Session Expiration Doubt - 1

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 392
P-273, Q-3 Option C)
"A session will become invalid after a timeout period defined by the servlet container"......MARKED AS TRUE

This statement means that if i have specified the timeout as 1 min, the session will ALWAYS expire after 1 min which is not true.
but i think this statement will be correct if we state it as :
"A session will become invalid after a timeout period defined by the servlet container if there is no activity by client
for this timeout period"..
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

In this context, a timeout period means inactivity. There's no need to mention it.

SRV.7.5 Session Timeouts
In the HTTP protocol, there is no explicit termination signal when a client is no longer active. This means that the only mechanism that can be used to indicate when a client is no longer active is a timeout period.

[My Blog]
All roads lead to JavaRanch
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Please Quote Your Sources. Thanks!

A good workman is known by his tools.
I agree. Here's the link:
subject: Session Expiration Doubt - 1
It's not a secret anymore!