This content has been marked as final.
Show 1 reply
-
1. Re: tracking web site
jasonbrome Oct 9, 2002 10:52 PM (in response to krishnara)If your app is deployed on a Web server that supports the new 2.3 servlet spec, one quick way to do this would be to implement a filter.
The filter can be configured to intercept all requests from the user to the web container. Within the filter you would capture and store within the user's session whatever statistical information you require.
Then, just create a class that implements HttpSessionListener, and in the sessionDestroyed method persist your stats information from the session to your datastore (sessionDestroyed is invoked by the web container when the session has expired).
Good luck,
Jason