Results 1 to 9 of 9
  1. #1
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Post Need help for displaying session timeout

    Hi All,
    Im a newbie. I need to display session timeout message with 2 option whether to continue or logout. If contine is clicked the session should be refreshed to another 20 minutes and if logout the data last accessed in that page should not be displayed and all info should be wiped off. Also the session timeout message should be displayed 1 minute before session timeout with these option.

    Also the session should be refreshed to 20 minutes on activation of that page like mouse click on page, scrolling, etc on that page.

    Please guide me on this

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default

    Sounds like Application Inactivity concepts might get you started in the right direction.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default

    this timeout message should support in mostly used web browsers like IE 6/7/8 and firefox 3/3.5 and netscape etc.Can it be developed in Java script or Java, based on browser compatibilty of either. And many thanks to Camikr and Eranga for ur great help.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Actually JavaScript is not related with Java technologies, but we can use it for browser dependent task. If you want to take different actions based on the browser normally we use JS, easy to find the browser type and take the appropriate action.

  6. #6
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default

    how to clear all the session windows and make cache expire?

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    To clear the sessions you can use the following method.

    Java Code:
    session.invalidate();

  8. #8
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default Thanks

    Thanks a lot Eranga!

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Session Timeout in LDAP
    By syntel in forum Java Servlet
    Replies: 0
    Last Post: 08-04-2009, 10:18 AM
  2. Replies: 1
    Last Post: 04-21-2009, 11:20 PM
  3. Replies: 2
    Last Post: 12-23-2008, 06:35 PM
  4. session timeout
    By nmbalaji in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 12-12-2008, 04:04 PM
  5. Session Timeout alert message
    By hemendra.rathore in forum Advanced Java
    Replies: 1
    Last Post: 11-03-2008, 07:03 AM

Posting Permissions

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