Hi I am arun.The HttpSessionListener event is not firing up when a new session is created.The following program(ConcurrentUserTracker) increments the static variable "users" once when each session is created. The servlet DispalyUsers displays the number of current active sessions in a webapplication.But the output I am always getting is 0(zero) eventhough more than 5 sessions accesses the practice(Web Application Name).See I have localarea network thats why I can able to access the webapplication simultaneously with 5 sessions.
If you are going to post more than a line or two of your code, wrap that code in a set of UBB Code tags. Doing so will help to preserve your code's indenting, making it easier to read. If it is easier to read, more people will actaully read it and you will stand a better chance of getting help with your question.
I've added them to your original post in the hopes that it will help you get a meaningful answer.