Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

plz help!!Budi Kurniawan!

 
Bill tops
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Budi Kurniawan,
I want to get the each page visted/access time for each user in our portal in particular session.So,I want to get the page exit time or atleast site/portal exit time .
I think whenever user closes his page /browser ,Then ejb remove() method will be called.if i wrote 'systime' in ejbremove() i will get that closing time.but that is not working.
"Is there any way to find each page access time for each user in particular session."
please help me.
Thanks in advance
[ July 23, 2002: Message edited by: Bill tops ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ejbRemove() method is not called when a HttpSession is closed, it's called when the EJB is removed from the container.
Would it be enough if you'd record the time for the last page loaded on your portal? This way, you would get the time spent minus the time the user spends on the last page before exiting.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill,
Please don't post the same question in different threads, particularly directed to a specific individual. JavaRanch is an open community and encourages everybody to get involved in answering and posting questions.
FYI, I've closed the original thread...
Thanks for your cooperation
Simon
 
Bill tops
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks for ur reply.
How can I record the time for the last page loaded
and the time user spent on last page.
Thanks in advance
vijay
Originally posted by Lasse Koskela:
The ejbRemove() method is not called when a HttpSession is closed, it's called when the EJB is removed from the container.
Would it be enough if you'd record the time for the last page loaded on your portal? This way, you would get the time spent minus the time the user spends on the last page before exiting.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For an individual page, use your page for this. At the top of the page, record the start time and the bottm record the end time. If you are using a MVC2 Pattern, your start time is the time you enter your controlling servlet, record the start time there (if you are using struts, you'll need to modify the ActionServlet). If you are interested in Session times, use a Session Attribute Listener and record the times of the proper events.
 
it's a teeny, tiny, wafer thin ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!