Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

HFSJ Mock question on Session timeout

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On Page 273, the following is the question:

Which statements about HttpSession objects are true?
A....
B....
C. A session will become invalid after a timeout period defined by the servlet container.
D....

The book says "C" is correct. I think it is wrong. The session only becomes invalid after a timeout period defined by the container only if its "inactive time" exceeds the timeout period.

Is my observation correct or am I misreading. Please let me know.

Thanks.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Session can become invalid if the
<session-timeout> configured in DD expires...refer PAGE 243 in HFSJ...


Rajesh

SCJP1.4 SCWCD1.4 (Preparing..)
 
lowercase baba
Posts: 13018
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rajesh,

glad you're here helping around the 'ranch. However, you're name does not conform to our naming policy. Briefly, it requires a real sounding first name, a space, and last name. Obviously ficticious names are also not allowed.

Would you be so kind as to visit here and update your name?

Thanks, and we'll see you 'round the ranch!!!
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by M Jairam:
On Page 273, the following is the question:

The session only becomes invalid after a timeout period defined by the container only if its "inactive time" exceeds the timeout period.

Is my observation correct or am I misreading. Please let me know.

Thanks.



I think you are correct. If the session is active , the time out will never happen
reply
    Bookmark Topic Watch Topic
  • New Topic