mndprasad
stranger
Reged: 06/02/08
Posts: 2
|
|
Hi all
I need a help here..am doing an application in jsp..i got struck in a position where i have not done that before
There are multiple users in my application..for each user the time allotement is 9am to 4pm...after 4 it should automatically logout and the admin can increase the time interval say upto 5..so that he can work til 5pm... how can i do this...while logging also it should check the time
thanx in advance
|
Rob_Purvis
stranger
Reged: 07/22/08
Posts: 5
|
|
You could have a servlet loaded on startup that listens on session events. When a new session is started, register the user details, compare with the time and log them out (by invalidating their session).
Have a thread that checks these session details every minute and compares with the current time, and invalidates sessions of anyone who should be logged out.
|