Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

limiting the number of user logging an application to a specific number  RSS feed

 
prakash pawar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can we restrict the number of user logging an application from Web.xml

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also have same problem?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet specification makes no provisions for this, so you'll have to implement it yourself. It sounds pretty easy to do.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at servlet listeners to see when sessions are created/destroyed. Note that if people close the browser without logging out, you won't know until the session times out.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
count a number of users loged in using listener and restrict them loging when the limit is become.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!