Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alerting the user about Session expiry after idle-time

 
Koti Samadhi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have the Web application in which i am using Weblogic Server with jsps. My requirment is to alert user prior to the session expiry when he revisit the page after the idle-time.

ISSUE is:
"When a user is on a page for longer than the required time he is timed out. There is a time-out value on the server that I need to capture and produce an alert box on the page. "

SOLUTION tried:

For this i tracked the values from javax.servlet.http API

1.Login time,
2. time out value from web.xml
3.*idle time(Unable to get it).


Please suggest me the solution for this, I mean to say is there any readymade plug-in,reusble component for this.

If not then how can i track the idle time for multiple user.

Do reply me ASAP,

Thanks & Regards
Koti
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you know what the timeout is, you could simply set up a javascript timer upon site creation. Once time is up you display the notification.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

read Eric's Solution Update User's Session with AJAX to get the idea and make it more dynamic..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic