Parent sesssion and child session

Posted on 2012-08-13
Last Modified: 2012-08-17
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
Question by:stmani2005
    LVL 35

    Expert Comment

    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.
    LVL 8

    Author Comment

    How could i know if session is expired or not
    LVL 35

    Accepted Solution

    Your implementation of the HttpSessionListener class has a method called sessionDestroyed that will be called by the servlet container when the session expires

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    java constructor error 8 66
    JKS to store upstart data 2 53
    Convert BufferedReader to File 1 49
    changePi Challenge 15 57
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    This video teaches viewers about errors in exception handling.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now