Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project and I have put it in remote site.
My problem is that if some body is accessing the project with a username and password then other can't open that on the same username and password because it is currently in used. After logout they can use that.

Please help me.
thanks.
Posted
Comments
nagendrathecoder 1-Dec-11 5:59am    
So whats the problem in that? Do you want to allow multiple logins using same username and password?

login is track though login screen
logout is track by 3 way
1. session expired and sign off click which is done by user
2. browser close.

So you have maintain a table with fields userid and Status. You have to maintain the Status 'A' for Activate and 'D' for Deactivate.

In Button Event,
1.check the userid status ,
If(Status!='A')
then update the table "Status into 'A'.
Afterwards only redirect into main page.

2.If Logout, Again Change the Status update into 'D'.

Here u will face lot of problems.For Help Visit try below links.
Help 1
Help 2
 
Share this answer
 
v2
Comments
RaviRanjanKr 1-Dec-11 14:21pm    
5+
[no name] 1-Dec-11 21:09pm    
EDIT: added "pre" tag
JBSAHU 2-Dec-11 7:31am    
suppose at the time of working the power will be off/computer automatically switch off then what I will do
hai
set the database value to online if you are logged in...if any of them try to logged in your user name check the data base condition.if it is online means refused it...
 
Share this answer
 
Comments
Mukund Thakker 1-Dec-11 6:31am    
User would not be login again, if he has not logged out in previous login.

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