• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jiris exam ; another foolish question and answer

 
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A session can be invalidated by which of the following:

Please select three correct answers.

A : After a default period of inactivity, say 30 minutes
B : Client side user closes the browser
C : After a specified period of inactivity, say 10 minutes
D : Client side user machine crashes
E : Explicitly invalidate a session through method calls

Their answer says A,C,E is the correct answer.

but my point of view is every options are correct.
am i right?

Actually i choose A,B,E but result says its wrong.
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would a server know that the client browser had closed or that the client server had crashed? If a machine crashes it doesn't automagically send a signal to the server to invalidate sessions. The session might eventually invalidate once the time out period had been reached but this would not be anything to do with the browser closing or machine crashing.
[ December 09, 2006: Message edited by: Marcus Green ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The events described in B and D will cause the client to lose the session (i.e., the browser can't access the same session again). That does not lead to the server invalidating the session. In fact, the server will never know that anything untoward happened to the client.

A, C and E are correct.

So be careful what you call foolish.
[ December 09, 2006: Message edited by: Ulf Dittmer ]
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I am happy.Now i clear the concept.
Thank you Marcus Green and Ulf Dittmer
 
reply
    Bookmark Topic Watch Topic
  • New Topic