File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
User timing in a session
Joined: Oct 27, 2005
Feb 27, 2007 07:26:00
I am using a
How do I keep track of the user timing from the logon to the logoff.
I would like to store this information in a database.
Can you help me on this.
[ February 27, 2007: Message edited by: sk mehrotra ]
Author and ninkuma
Joined: Jan 10, 2002
Feb 27, 2007 08:29:00
Unless I'm missing something in your question this is fairly trivial. Store a timestamp in the session when the user logs in, compute the elapsed time when they log out, and store it in the DB.
The interesting part comes when: what if they don't log out?
(Hint: session listener)
Asking smart questions
Books by Bear
subject: User timing in a session
Calculating applet laoding time
How to get activation time of an external application
Navigate through ResultSet
RequestDispatcher.forward does not work
Forms not submitting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015