Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In an ASP.net application an user has logged in Machine1. The same user has logged in Machine2 as well. At that time, I would like to Logout the user From Machine1 and would like to clear the session from Machine1. How to achieve this?
Posted
Comments
Sergey Alexandrovich Kryukov 23-Oct-12 0:43am    
What is the "machine"? What people log in in Web applications are not exactly "machines"...
--SA

1 solution

You can have a IP address column in log table. when user logsin in machine1 then change IP address to machine1. at every event check machine IP address. When Same user logs in from machine2 the update IP address for that user. when user makes event on machine1 and machine2 IP address updated, the user on machine1 will logout of the system.
 
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