Can any body please tell me how to include session time out tag in applet ? I need to invalidte user session after 30 min. So before expiring his session I need to save user work (on Applet)and I need to give warning to user on Applet?
Applets don't have a concept of sessions (what tag is this you're mentioning?).
Can you tell us in more detail what you're trying to do?
Sirish Kumar Gongal Reddy
Joined: Oct 25, 2004
Thanks for your response!
I have an web application there I set idle time for each user in the database. once user is sitting idle for specified time then his session will be invalidated.
On other hand my webapplication has Applets too, once applet is downloaded to local browser I am not able to handle/track user session.
1) I don't know how much time user is intaracting with the Applet. as long as he is intaracting with Applet his session has to extend if he sits idle then his session has to invalidate. servlet is handling user session activities.
2) how I can communicate with servlet from an Applet? If I am not intaract with the servlet say for 5 min my servlet will finish it's job, it will invalidate user session even though user is seriously working on an Applet.(say just user is editing the date on the Applet).
Hope my explanation is clear! Thanks!
Joined: Mar 22, 2005
Applets can talk to servlets via HTTP. The technique is decribed here.