adam gills

adam gills

  • NA
  • 65
  • 3.3k

set login status as 'offline' if progamm has been terminate

Jan 3 2017 2:57 AM
Dear Sir,
I have a login table having column as 'Status' which is containing value "online" and offline.
and I set by default "Status=Offline".
When I have login  successfully then status is updated as "online". and on logout "Status=Offline" updated.
But when Application through an exception or terminated Then "Status=online" shown in login table.
so please tell me how to resolve this type of issue in C#

Answers (5)