Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6204863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:10:14+00:00 2026-05-24T05:10:14+00:00

Here’s the 15th question of Chapter 5: Which method(s) can be used to ask

  • 0

Here’s the 15th question of Chapter 5:

Which method(s) can be used to ask the container to notify your application whenever a session is about to timeout? (Choose all that apply.)

A. HttpSessionListener sessionDestroyed
B. HttpSessionBindingListener valueBound
C. HttpSessionBindingListener valueUnbound
D. HttpSessionBindingEvent sessionDestroyed
E. HttpSessionAttributeListener attributeRemoved
F. HttpSessionActivationListener sessionWillPassivate

The correct answer is A and C. The explanation with option E is “Option E: Removing an attribute isnt tightly associated with a session timeout”

Now my problem is this.. when i tried to invalidate or set an expiry duration of 0 seconds the options A C E are triggered. So calling all WCD certified, can you guys explain why option E is incorrect?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:10:16+00:00Added an answer on May 24, 2026 at 5:10 am

    I think their question is poorly worded. You can “ask the container to notify your application whenever a session is about to timeout” from any of those places, or none of them.

    A better phrasing might be:

    Which interface(s) should you implement if you want to be notified
    whenever a session is about to timeout?

    But in any case, the JavaDoc is always a good place to start. You wouldn’t use attributeRemoved() to track session timeouts because a session can have an arbitrary number of attributes, any one of which can be removed at any time, regardless of whether or not the session is expiring. So the fact that an attribute has been removed is not a reliable indicator that the session has timed out. As the official explanation says, “removing an attribute isn’t tightly associated with a session timeout”. I would argue that it’s not even loosely associated with a session timeout.

    Disclaimer: I’m not any kind of certified. I just do this sort of thing for a living.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here a simple question : What do you think of code which use try
Here is my code, which takes two version identifiers in the form 1, 5,
I used javascript for loading a picture on my website depending on which small
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is my code sample, let me know if it can be further improved?
Here is my question. I am having this simple menu. <div id=menu> <ul> <li>
Here's the situation, i want to have a user that can enter time on
Here is an example: I have a file 1.js, which has some functions. I
Here is a script I can't get to work correctly. It's purpose is to
Here's a basic regex technique that I've never managed to remember. Let's say I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.