5 pts.
 How to check browser activity?
Hi, i'm working a project ,In that i'm storing login,logout time,wht if i don't click logout button and close my browser,or somehow my system shutdown.i cannot store the logout time,so that my program will be in error state.. tell me how to get the logout time when my programmer didn't click logout button and close my browser,or somehow my system shutdown? when system starts again from these failure, i need to display session expired login again. i'm using asp.net with c# 3.5 backend is sqlserver2005...help me to remove this problem...

Software/Hardware used:
asp.net with c# 3.5 backend is sqlserver2005
ASKED: February 25, 2011  2:38 AM
UPDATED: February 25, 2011  8:12 PM

Answer Wiki:
Hi, I think you can call your logout function from onunload or onbeforeunload javascript event. This way, when user closes the browser window your logout function will be called before unload the page. Read about these events <a href="http://www.javascriptkit.com/jsref/window.shtml">here</a> Regards.
Last Wiki Answer Submitted:  February 25, 2011  8:12 pm  by  Mariodlg   2,790 pts.
All Answer Wiki Contributors:  Mariodlg   2,790 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _