• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sessions

 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I want to allow 100 users at a time to access a website.How can i do it.

I hope reply as early as possible.

Regards,
Narayana
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you physically restrain everyone with internet access, I don't see what's stopping anyone from accessing an available web site.

Perhaps you need to be more specific with regards to your question.

Are you asking how to limit your site access to a miximum of 100 visitors at a time? I can't tell from your original post.

Please read this.
[ August 09, 2006: Message edited by: Bear Bibeault ]
 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,
Yeah,I want to allow maximum 100 users at a time

Cheers,
Narayana
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then the first thing you have to do is to describe what it means for a user to be accessing your web site. Am I accessing your web site only while you are sending the response to a request I just made? Or am I accessing it between the time I do some kind of login and the time I do some kind of logout? Or what?
 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bear,

am I accessing it between the time I do some kind of login and the time I do some kind of logout?
 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Paul,
I want to access it between the time I do some kind of login and the time I do some kind of logout?

Thanks,
Narayana
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bearing in mind that the concept of "logout" is nebulous (what happens if they just leave the site without logging out?) you could sort of do this by using session listeners to keep track of how many simultaneous sessions are currently active -- which may not be the same as the number of users actively using the system as pointed out above -- and use a servlet filter to bounce anyone trying to access the site when the max number of sessions are active.

Personally, I'd rather know why you want to do this. It really doesn't sound like a good idea at all to me.
[ August 09, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic