I need to create a user login session management for a chat application. The default value is 0 which mean that the user is offline or the session has expired. 1 mean that the user is online. How do I do this in c#.