Results 1 to 2 of 2
  1. #1
    LBL
    LBL is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default URGENT : Alert message before session timeout

    How to display a prompt or alert message before the current session times out. For example: If the session timeout is 30 minutes then an alert should be displayed after 20 minutes informing the user that his session is going to expire soon and counting down the time left. If user clicks on the alert then the session time should further increase by 30 minutes.

    Please provide sample code on HTTPSessionListener and the javascript in achieving this. Or any other method. Thank you.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: URGENT : Alert message before session timeout

    I have no idea. But teh internet seems to suggest that you have javascript on the page that pops up a message just before (what it hopes and prays is) the timeout time. The problem is that other things can talk to the server and, thereby, extend the session time. And the page can't ask because *that* would extend the session time.

    You might be interested in this StackOverflow question which considers using comet and a second connection. (Although there are no answers yet.)

    -----

    My main reason in posting is to suggest you avoid "urgent" and code requests, as meeting deadlines and supplying code are not what this forum is about.

Similar Threads

  1. Session Timeout issue
    By maheshd1 in forum New To Java
    Replies: 0
    Last Post: 08-23-2010, 12:34 PM
  2. Session Timeout in LDAP
    By syntel in forum Java Servlet
    Replies: 0
    Last Post: 08-04-2009, 11:18 AM
  3. session timeout
    By nmbalaji in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 12-12-2008, 05:04 PM
  4. Session Timeout alert message
    By hemendra.rathore in forum Advanced Java
    Replies: 1
    Last Post: 11-03-2008, 08:03 AM
  5. Replies: 4
    Last Post: 07-31-2008, 02:43 PM

Posting Permissions

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