Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want restrict user from logging again if he is already logged in. The restriction in doing so is that I have to use Java Frame or JApplet not JSP or java servlet.

What I have tried:

I tried by using thread or by maintaining a loginId in jdbc. I have also searching the solution but the solutions are of JSP or Java Servlet.
Posted
Updated 13-Sep-16 0:28am
Comments
Richard MacCutchan 13-Sep-16 6:26am    
If this is not a web based application then you cannot do it.
W Balboos, GHB 13-Sep-16 6:30am    
Why wouldn't your jdbc method work? If you can read from and write to a data a database then you can check logins and allow/deny them?

Are you sure your problem isn't with database usage?<br>
Member 12736899 13-Sep-16 6:40am    
@W∴ Balboos with Jdbc i am inserting a login status either 1 or 0. If the person is logged in the status will be one else 0. If status is one then user cannot open the another login window. But I am not getting the result. Similarly if the log in window is closed the status will be 0 and the user can login again

1 solution

I think you can use request filter in web.xml
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900