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

How to include Session Time out Tag?

 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?

Any ideas?

Many thanks,
Sirish
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

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!

-Sirish
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can talk to servlets via HTTP. The technique is decribed here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic