Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Rep Power

    Lightbulb Session Timeout alert message


    I want my application 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. If user clicks on the alert then the session time should further increase by 30 minutes.

    Please provide me with some ideas on how to handle this.


  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Create Session Handler class which will implement HttpSessionListener ,in web.xml edit your time after which the session will end,then in jsp file create javascript code,where you start counting Time when the user logged in,when the time got your time point make show alert message.

Similar Threads

  1. Javascript Alert
    By mutuah in forum New To Java
    Replies: 4
    Last Post: 03-25-2010, 06:28 PM
  2. RAD - Error getting connection: Timeout.
    By ShoeNinja in forum Other IDEs
    Replies: 0
    Last Post: 09-09-2008, 06:25 PM
  3. Replies: 4
    Last Post: 07-31-2008, 02:43 PM
  4. Threads and Timeout in Socket Networking
    By byuu in forum Threads and Synchronization
    Replies: 2
    Last Post: 05-27-2008, 10:05 PM
  5. Detect TimeOut in a HttpURL Connection
    By Ed in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 05:29 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