• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to include Session Time out Tag?

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Applets can talk to servlets via HTTP. The technique is decribed here.
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic