aspose file tools
The moose likes JSP and the fly likes User timing in a session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "User timing in a session" Watch "User timing in a session" New topic
Author

User timing in a session

sk mehrotra
Ranch Hand

Joined: Oct 27, 2005
Posts: 34
Hi,
I am using a JSP login page.
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.

Thanks
[ February 27, 2007: Message edited by: sk mehrotra ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

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)


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: User timing in a session
 
Similar Threads
How to get activation time of an external application
RequestDispatcher.forward does not work
Navigate through ResultSet
Calculating applet laoding time
Forms not submitting