Hi guys
i am using a hit counter
i have created a bean with scope as application and am checking for "session.isNew()"
if this returns true then i increment the counter else i dont.
but the problem is that if i load my page count.jsp and then
go to suppose hotmail.com in the same browser then come back again to my page count.jsp then i want the counter to increment!but it doesnt....
could anyone plz help me with this
Now there is a second option which i am using
I am checking for the referer in the header which gives me the previous page.
i.e
request.getHeader("Referer")
gives me
null if i am putting the url in the browser
if i am coming from the same domain it gives me the following url
http://sameera:8080/examples/jsp/index.jsp i am just checking that if the referrer is null or anything other than my machine( where server is present Tomcat 3.2.1) i increment the count but in this case
if i open a new browser and put the url
http://sameera:8080/examples/jsp/counter.jsp it increments the counter but when isay refresh it again increments it which i dont want could any one gimme a solution
plzz
thanks in advance
i would surely post the code .. if the above explanation is confusing
plz help surely
Sam