• 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

HF Servlets and JSP question

 
Greenhorn
Posts: 13
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day everyone,

I am studying for Oracle's Web Component Expert exam. On page 221 Chapter 5, Question 11, "only container can invalidate a session" is not a true statement according to this book. But why? Even though a servlet, or any other class that grabs a hold of HttpSession object can call invalidate() BUT isn't it the container that ultimately executes invalidation of session? Isn't HttpSession container's interface that container implements? So this question "which are true?" should also be "only container can invalidate a session".

Any comments? Feedback?

Thanks,
Victor.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think they mean "only the container can initiate invalidating a session" is a false statement. Because clearly as you point out any piece of code with access to the session can invalidate it!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic