Forums Register Login
Unable to track session hits

I was trying out an example for session tracking in servlets using HttpSession interface as follows:

No matter how many times I hit the servlet, I get different sessionID. Why is the session not being tracked?

It is not displaying the incremented value of visitCount for subsequent requests. Can anyone tell me where am I going wrong?
I tried the cde and it works fine in IE. Session id remains same even after refreshing. Also the value is incremented each time.

Maybe you need to delete cookies and try again. Or try in a different browser.

This thread has been viewed 888 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 24, 2018 07:35:27.