Results 1 to 2 of 2

Thread: Prohibited multiple login for same user

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Geek_Guest
    Guest

    Prohibited multiple login for same user

    I am using Struts frame work having Scenario like I am having one user and its password.

    I can login into application through that but the provision is like that one user can login only one time in application

    if same user will open other browser on same or other machine he should not be able to do the same.

    Multiple login should be prohibited for the same user So how can I check that use is already logged in. I cant set the user login credentials in Servlet context because it will be static approach for a single user users can be thousand or more so how I can check it in run time.

    If any of us can send code also will be beneficial to me.

    With Thanks and Regards

    Question asked by visitor Abhishek


  2. #2
    Junior Member
    Join Date
    Jan 2007
    Answers
    22

    Re: Prohibited multiple login for same user

    You can have a table for currently logged in users lets say CURRENT_USERS
    when ever a user logs in check against this table to see if he/she is there in that table , if not let the user log in and add the name in it . and dont forget to remove the name once the user is logged out or session times out.
    -hope it helps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact