aspose file tools*
The moose likes Servlets and the fly likes how to fins out the last activity time of the user ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to fins out the last activity time of the user ?" Watch "how to fins out the last activity time of the user ?" New topic
Author

how to fins out the last activity time of the user ?

shyam ji gautam
Ranch Hand

Joined: Sep 17, 2011
Posts: 48
dEAR all

i am writing the code for the webapplication in which i want to access the lst activity time of the user .


the scenario is like this when the user is clicks on button like logoff then i want to access that time and save that time into the databse to check the last activity time of the user



how i will do this

olivier dutranoit
Ranch Hand

Joined: Aug 20, 2011
Posts: 81

Hi,

can't be that hard ...

in your "logoff" method in your servlet, just retreive the current datetime in java.
store it in the database, done...
 
Consider Paul's rocket mass heater.
 
subject: how to fins out the last activity time of the user ?