M
Mike Labosh
I have a webform with this event procedure:
Private Sub Page_Unload( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Unload
Logger.Logout(User.Identity.Name)
End Sub
Logger is my class that has methods for putting a username into a database
table when they login, and removing the entry when they log out.
So, in the implementation above, I want the code to log them out when they
surf off the page. But in stepping through it in the debugger, It's hitting
this event procedure when they *enter* the page, and does *not* hit it when
they *leave*
What gives?!?
Private Sub Page_Unload( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Unload
Logger.Logout(User.Identity.Name)
End Sub
Logger is my class that has methods for putting a username into a database
table when they login, and removing the entry when they log out.
So, in the implementation above, I want the code to log them out when they
surf off the page. But in stepping through it in the debugger, It's hitting
this event procedure when they *enter* the page, and does *not* hit it when
they *leave*
What gives?!?