Link Details

Link 885983 thumbnail
User 752121 avatar

By murygin
via murygin.wordpress.com
Published: Dec 03 2012 / 08:42

Implementing session timeout handling in an ajax web application can be hard. You have to redirect to a login page when a single ajax call fails after user session is invalid. My solution is based on PrimeFaces idle monitor. User is redirected to logout action after timeout to invalidate the session. 2 minutes before a countdown dialog is shown to warn user. After moving the mouse again session is extended.
  • 6
  • 0
  • 3991
  • 1286

Comments

Add your comment
User 1222035 avatar

erkanyalcin replied ago:

1 votes Vote down Vote up Reply

Another solution using primefaces and java script is here http://javacodetips.blogspot.com.tr

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (0)



    Play Framework
    Written by: Ryan Knight
    Featured Refcardz: Top Refcardz:
    1. Akka
    2. Design Patterns
    3. OO JS
    4. Cont. Delivery
    5. HTML5 Mobile
    1. Akka
    2. JUnit/EasyMock
    3. Java Performance
    4. REST
    5. Java