This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Active Sessions

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
reply
    Bookmark Topic Watch Topic
  • New Topic