A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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)
Books by Bear
I agree. Here's the link:
- it saves me about five hours per week
subject: User timing in a session
How to get activation time of an external application
RequestDispatcher.forward does not work
Navigate through ResultSet
Calculating applet laoding time
Forms not submitting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013