This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a requirement in my application to reset DB status of a UserID when the users session gets invalidated upon network disconnection. To do this, my idea is to store the Session ID of the users in DB and then periodically check the validity of session using Session ID and then update status in DB when the session is found invalid.