nishant ranjan

nishant ranjan

  • NA
  • 390
  • 0

Updating database on session expire

Jul 18 2011 7:25 AM

1. I want to update database as soon as my session expires/timeout.
2. And when browser is closed.


I have table login_detail with field login_sts. when someone logs in value changes to 1 and when someone loges out value changes to 0. my problem is that if smone logs in, but doesnt signout and his session expires or he closes the browser, still login_sts will contain value 1(as he has nt loged out).

I want to update value on session expire or close of browser.

I tried to update it on session_end in global.asax, but failed.
and could not code for browser close update.




Answers (1)