• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jiris exam ; another foolish question and answer

 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • 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.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Ok, I am happy.Now i clear the concept.
Thank you Marcus Green and Ulf Dittmer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic