This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to fins out the last activity time of the user ?
 
Similar Threads
Want to improve page loading time which is affected due to large no of input textbox
Customer and Customer activity file
a regular activity and Thread
Finish any previous activity in stack from current activity?
Anonymous user tracking