[Logo]
Forums Register Login
Unable to track session hits
Hi

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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 16, 2017 19:12:17.