Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Invalidate

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question ID :
In which of the following situations will a session be definitely invalidated?
Please confirm if choice (1) should also be an answer to this question.
Choices:
1.The container is shutdown and brought up again.
Is the session not invalidated if the container itself is shut down?2.No request comes from the client for more than �session timeout� period.
This is an answer
3.A servler explicitly calls invalidate() on a session object.
This is an answer.
4.If the session time out is set to 0 using setMaxInactiveInterval method, the session will never be invalidated automatically.
Explanation: This is not the obviously not the answer.
Thanks
Ravinder
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think 1) is a correct answer. From I can remember from the mock, some containers have the mechanism of passivating the session. So it wouldn't be something like "definitely" invalidate the session.
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andres
Only the EJB Containers have the ability to passivate the session but I am doubtful about the Servlet containers having this feature.
-- Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic