Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to track session hits

 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Gaurav Wadhwani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic