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
  • 4116
  • 1299

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)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java