i am developing a hit counter in my web application to increase whenever a new user visits my website so that i will now the number of hits from different users so far. but the problem is that it is increasing even though it is the same ip address
I'm mot a Java expert but it appears to me that the method you are using to maintaining a hit counter depends on your application server remaining uninterrupted. It you restart services, you will loose the count??
Since you want to incorporate handling the IP, i woukd tend to think that it may be a better solution to store the information in some type of data source, such as a data as a table.