Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im already make login by session but i need if another one make login with same user, DB make logout automatically

What I have tried:

how can i make DB colum to count user session
Posted
Updated 20-Oct-16 9:39am

First off, this is a poor way to design a web application. However, if it must be done then you need to track SessionIDs in sql as best you can and when someone else logs in set a flag to abandon the other session or prevent login, whatever you need to do.
 
Share this answer
 
Comments
Karthik_Mahalingam 20-Oct-16 23:49pm    
5
Have a look at article Restricting logon to SQL Server[^].
Perhaps it would contain some ideas you could use.
 
Share this answer
 
Comments
Karthik_Mahalingam 20-Oct-16 23:50pm    
good article
5!
Wendelius 21-Oct-16 13:49pm    
Thank you.

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