Results 1 to 2 of 2
  1. #1
    SantoshBK09 is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default How to allow one user to acces resource

    Hi Friends,

    I am developing an web application in Servlet, My question is
    if a person login to my application with user id(abc) and password(123456), if somebody tries open in same time with login with same user id(abc) and password(123456), my application should not allow him.

    How can to do in servlet.

    Thanks in Advance.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Where ever you store your user information, I assume a database, add an in-use flag. I suggest making the flag an expiration timestamp, since the user may not sign off when they are done, and the profile will remain locked. This will also require your servlet to check that the user sign-on is still valid on each post.

Similar Threads

  1. Resource Adpaters for JAIN-SIP and J2EE
    By metal4591 in forum New To Java
    Replies: 0
    Last Post: 12-29-2008, 07:08 AM
  2. tomcat resource bundle tab not appearing??
    By freddieMaize in forum NetBeans
    Replies: 2
    Last Post: 05-25-2008, 10:15 AM
  3. how to configure a JNDI URL resource
    By rinks in forum Advanced Java
    Replies: 0
    Last Post: 03-12-2008, 05:57 PM
  4. Velocity, cannot find resource
    By sandor in forum Web Frameworks
    Replies: 1
    Last Post: 05-17-2007, 11:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts