Parent sesssion and child session

i want to store session id and session status in ehcache

when session status is expired i want to terminate child session according to session.

how could i notify when parent session expired  and according how could i terminate child session
Manikandan ThiagarajanSenior consultantAsked:
Who is Participating?
mccarlConnect With a Mentor IT Business Systems Analyst / Software DeveloperCommented:
Your implementation of the HttpSessionListener class has a method called sessionDestroyed that will be called by the servlet container when the session expires
mccarlIT Business Systems Analyst / Software DeveloperCommented:
I'm not 100% sure of what you mean by parent/child in relation to sessions. But if you have two sessions that you are trying to synchronize, then the use of HttpSessionListener is probably what you would be after.
Manikandan ThiagarajanSenior consultantAuthor Commented:
How could i know if session is expired or not
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.