IntelliJ Java IDE
The moose likes Struts and the fly likes preventing multiple user with same user Name and pswd Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "preventing multiple user with same user Name and pswd" Watch "preventing multiple user with same user Name and pswd" New topic
Author

preventing multiple user with same user Name and pswd

Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Hi,
Please help...
In my application i need to prevent multiple login of same user.
I need it to implement when one loged in the previous user should inactivate.any solution is there without using database operations.
...
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

This any framwork wont provide u ...u need to do this by choosing some algorithm..

i will tell u one .whenver the user tries to login (if he is valid) check for an entry in some hashmap(where u will be storing the username,session after successful login) if thereis already one u warn him r do whatever u like else ........

i had impl this in mine

get back if u need any help
 
 
subject: preventing multiple user with same user Name and pswd
 
Threads others viewed
Using BASIC Authentication with Tomcat 4.1.12
URLyBird - question about standalone mode
Connection pooling for different accounts
how to prevent multiple login by the same user
retain selection of multiple selected box
developer file tools