Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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: 42967
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
Marshal
Posts: 34422
347
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