+ Reply to Thread
Results 1 to 3 of 3

Thread: Logout user on Application crash

  1. #1
    gate7cy is offline VB.NET Forum Fanatic gate7cy is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    May 2009
    Posts
    115
    Reputation
    19

    Default Logout user on Application crash

    I have developed a server-client application. The program has multiple users each uniquely login in with their credentials to the system. The problem arises when the application crashes, pc shuts/restarts, the user then cannot log in as it is showing is still logged in. This is true because the last code from the program, which logs out the users , is not run because the program crashed or the pc , that is intalled on, lost power. Is there a way to go around this problem. I cannot deploy the application until this is fixed. I have placed on application exit and on last form`s closing event to logout users. It still keeps them logged in in some cases as I already stated previously. Thanks for the replies

  2. #2
    r3plica's Avatar
    r3plica is offline VB.NET Forum Enthusiast r3plica done a little coding in his/her time r3plica done a little coding in his/her time r3plica done a little coding in his/her time
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2010
    Age
    30
    Posts
    81
    Reputation
    63

    Default

    well, you could have a try catch block to catch the crashes. Then on the Catch part, you can put in your logout code (or execute the function(s) you have created to log the user out.
    If I solve your issue or you are happy with my response, please provide me with reputation by clicking the reputation link at the top right of my posts - thanks

  3. #3
    CIMStu is offline VB.NET Forum Newbie CIMStu is on a distinguished programming path ahead
    .NET Framework
    .NET 2.0
    Join Date
    Mar 2010
    Age
    26
    Posts
    12
    Reputation
    7

    Default

    Could you not write a "add on" utility that shows user logins and from which users can log out "stuck" users?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts