Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Active Sessions

 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am a learner..help me...

I am doing my application on tomcat servlet container.

1)I wanted to know how many sessions are running for my web application and the information of users,who were assigned to those sessions.

2)Can i stop a session from the list of sessions running,if i had permissions to do that.How to do that?

3)Can i restrict only one user can login at a time with a userid/pwd.
Such that no other person can login into my application with the same userid/pwd upto the first user is loggedout.How to do that?

Thanks & Regards
Afroz Ahmed
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can add the user to the session as an attribute, after login. For restricting duplicate login, you can use SessionBindingListener and methods _Bound() and _unBound().
Regards,
Gajanan C
 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Gajanan,

It is working fine for duplicate user.Thanks a lot.

Can you give me clarification regarding other probs too.

Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic