Results 1 to 3 of 3
  1. #1
    kasipandian is offline Member
    Join Date
    Feb 2008
    Posts
    7
    Rep Power
    0

    Default How to use HttpSessionActivationListener

    Hi Friends
    I would like to implement HttpSessionActivationListener in my project . Can you please tell me what all needs to be done for this?
    I also tried. But I'm not able to get any outputs from Listener. I've implemented this class and overrided two unimplemeted methods(sessionDidActivate,sessionWillPassivate). And I put Println statements inside. And I kept a listener entry in web.xml.My project is working fine. but the listener class println statements is not printing in the console. Can you please send me the steps and if possible send some sample codes. Any help would be appreciated.

    Regards
    Kasipandian.R

  2. #2
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Please describe your exact requirement.

  3. #3
    kasipandian is offline Member
    Join Date
    Feb 2008
    Posts
    7
    Rep Power
    0

    Default

    Hi,

    My requirement is, the session time out is 60 minutes. Whenever the system idle for 60 minutes the system should automatically go to session expired page. That will happen automatically. But 5 minutes before I've to give a pop up or alert message "session is going to expired". For this I've access the system idle time whenever the system is idle. Now I'm using javascript setTimeout function. In server is not working fine. So I'm planning to use session API, to track the session and I've to implement the logic based on my requirement. And I dont want Javascript functionality. And I 've to find out the system idle time and this function should be running automatically in frequent interval. Any help would be appreciated.

    Regards
    Kasi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •