Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User timing in a session

 
sk mehrotra
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic