Windows Develop Bookmark and Share   
 index > Windows Forms General > Single User single login
 

Single User single login

I've Created one Desktop Application which has server client access... Every user will has different login. Now the problem is, when one user is login, the same user cannot be login from other pc... The msg should come as the 'user is already Login'. In ASP.Net, it can be achieved through session.. But, how can I do this in Desktop Application. There is one solution.. We can maintain one log table for the logined users. But, that too will face deadlock situation.... Is any other solution for the single user login??

ShaliniDotnet  Friday, September 25, 2009 1:01 PM

I think you are correct. You will have to create a log table which will maintain loginstatus. Deadlock situation can be avoid using Transaction. One problem which I think could be when the application closes abnormally which you will need to tackle in some intelligent way.


Gaurav Khanna
Khanna Gaurav  Friday, September 25, 2009 2:38 PM

I think you are correct. You will have to create a log table which will maintain loginstatus. Deadlock situation can be avoid using Transaction. One problem which I think could be when the application closes abnormally which you will need to tackle in some intelligent way.


Gaurav Khanna
Khanna Gaurav  Friday, September 25, 2009 2:38 PM

As your application is server-client based, you can have all clients to request server for login and let server decide whether to allow login or not.


Gaurav Khanna
Khanna Gaurav  Friday, September 25, 2009 2:43 PM

You can use google to search for other answers

Custom Search

More Threads

• probelm with graphics context
• Draw Graph using Math()
• Delete Date Time Picker Control
• MessageBox.Show() (or rather NoShow()!?)
• multiline text in listview ?
• How to assign Empty Value to DateTimePicker?
• i dont want anyone implement my Interface !
• Events not firing from winform controls embedded in Internet Explorer
• My wish list
• Need a Good GDI+ Concept