Using session object in java servlet or jsp.In session ojbect, there is an attribute as the creating time, which is normally the time user login into your web site. This time is the server time, the time of your web server, not the client machine time. So you know what is the current time and user login time, it is easy to know how long user stay in your web site.Requirement: Your web site must to be implemented in Java Server Technology, like servlet and JSP. You can only know the user stay time which is login. No way to know a user like guest who doesn't need to login.
Your web site must to be implemented in Java Server Technology, like servlet and JSP.
You can only know the user stay time which is login. No way to know a user like guest who doesn't need to login.